Title: Return type mismatch in repo.submodule_update() · Issue #2077 · gitpython-developers/GitPython · GitHub
Open Graph Title: Return type mismatch in repo.submodule_update() · Issue #2077 · gitpython-developers/GitPython
X Title: Return type mismatch in repo.submodule_update() · Issue #2077 · gitpython-developers/GitPython
Description: Hello everyone! repo.submodule_update is annotated to return an Iterator[Submodule] (and I hoped it might return an iterator of modified modules or something similar). GitPython/git/repo/base.py Lines 523 to 531 in ba5c10d def submodule_...
Open Graph Description: Hello everyone! repo.submodule_update is annotated to return an Iterator[Submodule] (and I hoped it might return an iterator of modified modules or something similar). GitPython/git/repo/base.py Li...
X Description: Hello everyone! repo.submodule_update is annotated to return an Iterator[Submodule] (and I hoped it might return an iterator of modified modules or something similar). GitPython/git/repo/base.py Li...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/2077
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Return type mismatch in repo.submodule_update()","articleBody":"Hello everyone! `repo.submodule_update` is annotated to return an `Iterator[Submodule]` (and I hoped it might return an iterator of modified modules or something similar).\n\nhttps://github.com/gitpython-developers/GitPython/blob/ba5c10d3655c4fec714294cbc2ae0829c44dc046/git/repo/base.py#L523-L531\n\nHowever, `RootModule.update` just returns `self` (type `RootModule`):\n\nhttps://github.com/gitpython-developers/GitPython/blob/ba5c10d3655c4fec714294cbc2ae0829c44dc046/git/objects/submodule/root.py#L79-L90\n","author":{"url":"https://github.com/extrwi","@type":"Person","name":"extrwi"},"datePublished":"2025-10-17T16:33:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/2077/GitPython/issues/2077"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:405b9b98-72ac-3bc9-09a3-10d7fb20f8f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDC2:1327C8:23FD1C3:328E2FD:696916B0 |
| html-safe-nonce | 002a87910e4e6a6ce44011c9da8562ae838d027dd3e751e9321a86c90478ea2a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREMyOjEzMjdDODoyM0ZEMUMzOjMyOEUyRkQ6Njk2OTE2QjAiLCJ2aXNpdG9yX2lkIjoiOTEwMTE2NjUzOTU4MTIzMjgxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 489d566ed58ecf6337b6bc5ad84ab9188cba71a7fa644fa5041232015bb42ba0 |
| hovercard-subject-tag | issue:3526804225 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/2077/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a993f9af2a339cbe78f748b2e7995d7e2254050b527b4e62916e904dbb4e4bc/gitpython-developers/GitPython/issues/2077 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a993f9af2a339cbe78f748b2e7995d7e2254050b527b4e62916e904dbb4e4bc/gitpython-developers/GitPython/issues/2077 |
| og:image:alt | Hello everyone! repo.submodule_update is annotated to return an Iterator[Submodule] (and I hoped it might return an iterator of modified modules or something similar). GitPython/git/repo/base.py Li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | extrwi |
| hostname | github.com |
| expected-hostname | github.com |
| None | afd5814870f8609d217a32dd3bccc05a5df5f5699df4d458c242e80fdfddcc2e |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 572e69339f2401a569f15071214cbbee314ea8bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width