Skip to content

Commit 9dd0081

Browse files
committed
Use actual return type in annotation for method submodule_update
Fixes#2077
1 parent ba5c10d commit 9dd0081

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
returnRootModule(self).traverse(*args, **kwargs)
522522

523-
defsubmodule_update(self, *args: Any, **kwargs: Any) ->Iterator[Submodule]:
523+
defsubmodule_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)