Merge pull request #2078 from extrwi/submodule-update-return-type · gitpython-developers/GitPython@271328f

Original file line numberDiff line numberDiff line change

@@ -520,7 +520,7 @@ def iter_submodules(self, *args: Any, **kwargs: Any) -> Iterator[Submodule]:

520520

"""

521521

return RootModule(self).traverse(*args, **kwargs)

522522
523-

def submodule_update(self, *args: Any, **kwargs: Any) -> Iterator[Submodule]:

523+

def submodule_update(self, *args: Any, **kwargs: Any) -> RootModule:

524524

"""Update the submodules, keeping the repository consistent as it will

525525

take the previous state into consideration.

526526