Typing stubs for pygit2, providing type hints for libgit2 bindings. These stubs are auto-generated by typeshed and should be installed alongside pygit2 for static type checking. Version 1.15.0.20250319 follows pygit2's major version; release cadence is tied to pygit2 updates and typeshed maintenance.
pip install types-pygit2No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Quick example showing how to use pygit2 with type stubs enabled.
Keep both packages at matching major.minor versions: pip install pygit2==1.15.* types-pygit2==1.15.*
Update to pygit2 1.15+ and use the new API when possible. Refer to pygit2 migration guide.
If you encounter missing stubs, consider contributing to typeshed or using inline type comments as a workaround.