Skip to content

Commit 4c110c7

Browse files
committed
export symbols using __all__ to avoid typing errors
Mentioned in #1322 Explanation on how it works - https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface Example failing snippet: ```python import pygit2 def test(repo: pygit2.Repository): ... ```
1 parent 894a4dc commit 4c110c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pygit2/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
from .utils import to_bytes, to_str
6262

6363

64+
__all__ = ("Repository",)
65+
6466
# Features
6567
features = enums.Feature(C.git_libgit2_features())
6668

0 commit comments

Comments
 (0)