Skip to content

Commit 2d92fee

Browse files
committed
add py.typed, mypy.ini and git/types.py
1 parent 9c6178f commit 2d92fee

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

git/py.typed

Whitespace-only changes.

git/types.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import os
2+
from typing import Optional, Union, Any
3+
4+
5+
TBD = Any
6+
PathLike = Union[str, os.PathLike[str]]

mypy.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
[mypy]
3+
4+
disallow_untyped_defs = True

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def build_py_modules(basedir, excludes=[]):
9595
license="BSD",
9696
url="https://github.com/gitpython-developers/GitPython",
9797
packages=find_packages(exclude=("test.*")),
98+
package_data={'git': ['**/*.pyi', 'py.typed']},
9899
include_package_data=True,
99100
py_modules=build_py_modules("./git", excludes=["git.ext.*"]),
100101
package_dir={'git': 'git'},

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy