Use actual return type in annotation for method submodule_update by extrwi · Pull Request #2078 · gitpython-developers/GitPython
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.