Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork959
Closed
Labels
Description
Hello everyone!repo.submodule_update is annotated to return anIterator[Submodule] (and I hoped it might return an iterator of modified modules or something similar).
Lines 523 to 531 inba5c10d
| defsubmodule_update(self,*args:Any,**kwargs:Any)->Iterator[Submodule]: | |
| """Update the submodules, keeping the repository consistent as it will | |
| take the previous state into consideration. | |
| :note: | |
| For more information, please see the documentation of | |
| :meth:`RootModule.update <git.objects.submodule.root.RootModule.update>`. | |
| """ | |
| returnRootModule(self).update(*args,**kwargs) |
However,RootModule.update just returnsself (typeRootModule):
GitPython/git/objects/submodule/root.py
Lines 79 to 90 inba5c10d
| defupdate(# type: ignore[override] | |
| self, | |
| previous_commit:Union[Commit_ish,str,None]=None, | |
| recursive:bool=True, | |
| force_remove:bool=False, | |
| init:bool=True, | |
| to_latest_revision:bool=False, | |
| progress:Union[None,"RootUpdateProgress"]=None, | |
| dry_run:bool=False, | |
| force_reset:bool=False, | |
| keep_going:bool=False, | |
| )->"RootModule": |