Content-Length: 300118 | pFad | http://github.com/gitpython-developers/GitPython/commit/2d92fee01b05e5e217e6dad5cc621801c31debae

29 add py.typed, mypy.ini and git/types.py · gitpython-developers/GitPython@2d92fee · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/gitpython-developers/GitPython/commit/2d92fee01b05e5e217e6dad5cc621801c31debae

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy