libgit2 / pygit2

Python bindings for libgit2
https://www.pygit2.org/
Other
1.58k stars 382 forks source link

Improved type hinting in Branches, References #1132

Closed jorio closed 2 years ago

jorio commented 2 years ago

Specifying the type of repository in the constructors of Branches and References helps IDEs resolve the type of expressions such as:

repo.references["refs/remotes/origin/master"] ---> Reference repo.branches.local["master"] ---> Branch