Skip to content

Fix mypy no implicit reexports errors #1402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
warn_unused_configs = True
warn_redundant_casts = True
warn_unused_ignores = True
no_implicit_reexport = True

[mypy-test.*]
disallow_untyped_defs = True
Expand Down
2 changes: 2 additions & 0 deletions pygit2/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
from ._pygit2 import GitError
from .ffi import C, ffi

__all__ = ['GitError']

value_errors = set([C.GIT_EEXISTS, C.GIT_EINVALIDSPEC, C.GIT_EAMBIGUOUS])


Expand Down
2 changes: 2 additions & 0 deletions pygit2/ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,5 @@
# Import from pygit2
from ._libgit2 import ffi # noqa: F401
from ._libgit2 import lib as C # type: ignore # noqa: F401

__all__ = ['C', 'ffi']
Loading