Skip to content

Commit 271328f

Browse files
authored
Merge pull request gitpython-developers#2078 from extrwi/submodule-update-return-type
Use actual return type in annotation for method submodule_update
2 parents ba5c10d + 9dd0081 commit 271328f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/repo/base.py

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)