From 2d92fee01b05e5e217e6dad5cc621801c31debae Mon Sep 17 00:00:00 2001 From: yobmod Date: Sun, 28 Feb 2021 18:04:24 +0000 Subject: add py.typed, mypy.ini and git/types.py --- git/py.typed | 0 git/types.py | 6 ++++++ mypy.ini | 4 ++++ setup.py | 1 + 4 files changed, 11 insertions(+) create mode 100644 git/py.typed create mode 100644 git/types.py create mode 100644 mypy.ini diff --git a/git/py.typed b/git/py.typed new file mode 100644 index 00000000..e69de29b 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 diff --git a/setup.py b/setup.py index 2acb4076..f8829c38 100755 --- a/setup.py +++ b/setup.py @@ -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'}, -- cgit v1.2.1