diff options
-rw-r--r-- | git/py.typed | 0 | ||||
-rw-r--r-- | git/types.py | 6 | ||||
-rw-r--r-- | mypy.ini | 4 | ||||
-rwxr-xr-x | setup.py | 1 |
4 files changed, 11 insertions, 0 deletions
diff --git a/git/py.typed b/git/py.typed new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/git/py.typed diff --git a/git/types.py b/git/types.py new file mode 100644 index 00000000..19d20c24 --- /dev/null +++ b/git/types.py @@ -0,0 +1,6 @@ +import os +from typing import Optional, Union, Any + + +TBD = Any +PathLike = Union[str, os.PathLike[str]]
\ No newline at end of file diff --git a/mypy.ini b/mypy.ini new file mode 100644 index 00000000..72716491 --- /dev/null +++ b/mypy.ini @@ -0,0 +1,4 @@ + +[mypy] + +disallow_untyped_defs = True
\ No newline at end of file @@ -95,6 +95,7 @@ setup( license="BSD", url="https://github.com/gitpython-developers/GitPython", packages=find_packages(exclude=("test.*")), + package_data={'git': ['**/*.pyi', 'py.typed']}, include_package_data=True, py_modules=build_py_modules("./git", excludes=["git.ext.*"]), package_dir={'git': 'git'}, |