diff --git a/json_minify/__init__.pyi b/json_minify/__init__.pyi new file mode 100644 index 0000000..3136aa2 --- /dev/null +++ b/json_minify/__init__.pyi @@ -0,0 +1,3 @@ +import typing + +def json_minify(string: str, strip_space: bool = True) -> typing.Any: ... diff --git a/json_minify/py.typed b/json_minify/py.typed new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/json_minify/py.typed @@ -0,0 +1 @@ + diff --git a/json_minify/test_json_minify.pyi b/json_minify/test_json_minify.pyi new file mode 100644 index 0000000..6d90b83 --- /dev/null +++ b/json_minify/test_json_minify.pyi @@ -0,0 +1,10 @@ +from typing import List +from unittest import TestCase + +class JsonMinifyTestCase(TestCase): + tests: List[List[str]] + def template(self, index: int) -> None: ... + def test_1(self) -> None: ... + def test_2(self) -> None: ... + def test_3(self) -> None: ... + def test_4(self) -> None: ... diff --git a/setup.py b/setup.py index 20c47e1..7da642c 100644 --- a/setup.py +++ b/setup.py @@ -30,4 +30,7 @@ "License :: OSI Approved :: MIT License", "Topic :: Utilities", ], + package_data={ + "json_minify": ["*.pyi", "py.typed"] + } )