Use actual return type in annotation for method submodule_update by extrwi · Pull Request #2078 · gitpython-developers/GitPython
Expand Up
@@ -520,7 +520,7 @@ def iter_submodules(self, *args: Any, **kwargs: Any) -> Iterator[Submodule]:
"""
return RootModule(self).traverse(*args, **kwargs)
def submodule_update(self, *args: Any, **kwargs: Any) -> Iterator[Submodule]: def submodule_update(self, *args: Any, **kwargs: Any) -> RootModule: """Update the submodules, keeping the repository consistent as it will take the previous state into consideration.
Expand Down
def submodule_update(self, *args: Any, **kwargs: Any) -> Iterator[Submodule]: def submodule_update(self, *args: Any, **kwargs: Any) -> RootModule: """Update the submodules, keeping the repository consistent as it will take the previous state into consideration.
Expand Down