Skip to content

Commit 0df1e17

Browse files
committed
typing: submodules
1 parent 570cdef commit 0df1e17

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pygit2/submodules.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@
3939

4040

4141
class Submodule:
42+
_repo: BaseRepository
43+
_subm: object
44+
4245
@classmethod
4346
def _from_c(cls, repo: BaseRepository, cptr):
4447
subm = cls.__new__(cls)
@@ -74,7 +77,10 @@ def init(self, overwrite: bool = False):
7477
check_error(err)
7578

7679
def update(
77-
self, init: bool = False, callbacks: RemoteCallbacks = None, depth: int = 0
80+
self,
81+
init: bool = False,
82+
callbacks: Optional[RemoteCallbacks] = None,
83+
depth: int = 0,
7884
):
7985
"""
8086
Update a submodule. This will clone a missing submodule and checkout

0 commit comments

Comments
 (0)