Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e960f2f

Browse files
authored
pygit2: Add missing Repository fields (#11579)
1 parent 9a4b605 commit e960f2f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

stubs/pygit2/pygit2/repository.pyi

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ from typing_extensions import TypeAlias, deprecated
66

77
from ._pygit2 import Blob, Commit, Diff, Object, Oid, Reference, Repository as _Repository, Signature, Tree, _OidArg
88
from .blame import Blame
9+
from .branches import Branches
910
from .callbacks import CheckoutCallbacks, RemoteCallbacks, StashApplyCallbacks
1011
from .config import Config
1112
from .enums import (
@@ -23,7 +24,9 @@ from .enums import (
2324
)
2425
from .index import Index, IndexEntry
2526
from .packbuilder import PackBuilder
26-
from .submodules import Submodule
27+
from .references import References
28+
from .remotes import RemoteCollection
29+
from .submodules import Submodule, SubmoduleCollection
2730
from .utils import _IntoStrArray
2831

2932
_PackDelegate: TypeAlias = Callable[[PackBuilder], None]
@@ -32,6 +35,11 @@ class _SupportsAddfile(Protocol):
3235
def addfile(self, tarinfo: TarInfo, fileobj: IO[bytes] | None = None) -> None: ...
3336

3437
class BaseRepository(_Repository):
38+
branches: Branches
39+
references: References
40+
remotes: RemoteCollection
41+
submodules: SubmoduleCollection
42+
3543
def __init__(self, *args: Any, **kwargs: Any) -> None: ... # not meant for direct use
3644
def read(self, oid: _OidArg) -> tuple[int, int, bytes]: ...
3745
def write(self, type: int, data: bytes) -> Oid: ...

0 commit comments

Comments
 (0)