There was an error while loading. Please reload this page.
1 parent 07bfe1a commit 09fb227Copy full SHA for 09fb227
1 file changed
git/objects/submodule/util.py
@@ -4,6 +4,11 @@
4
from io import BytesIO
5
import weakref
6
7
+from typing import TYPE_CHECKING
8
+
9
+if TYPE_CHECKING:
10
+ from .base import Submodule
11
12
__all__ = ('sm_section', 'sm_name', 'mkhead', 'find_first_remote_branch',
13
'SubmoduleConfigParser')
14
@@ -60,7 +65,7 @@ def __init__(self, *args, **kwargs):
60
65
super(SubmoduleConfigParser, self).__init__(*args, **kwargs)
61
66
62
67
#{ Interface
63
- def set_submodule(self, submodule):
68
+ def set_submodule(self, submodule: 'Submodule') -> None:
64
69
"""Set this instance's submodule. It must be called before
70
the first write operation begins"""
71
self._smref = weakref.ref(submodule)
0 commit comments