pygit2: Workaround python/mypy#16972 (#11584)

To fix the signatures of `clone_repository` and `init_repository` as
seen by type checkers.
This commit is contained in:
WÁNG Xuěruì
2024-03-16 21:14:15 +08:00
committed by GitHub
parent ff7caa30e2
commit 0ad1501a99
2 changed files with 8 additions and 6 deletions

View File

@@ -1,7 +1,3 @@
# stubtest wrongly checks the Python implementation with the cffi type's
# stubs, likely due to name shadowing that happens at import-time
pygit2.Repository.__init__
pygit2.Repository._from_c
# @cached_property that fail to get recognized as such by stubtest
pygit2.config.ConfigEntry.level
pygit2.config.ConfigEntry.raw_name