Title: `repo.blame` should allow passing `None` as the `rev` parameter. · Issue #1835 · gitpython-developers/GitPython · GitHub
Open Graph Title: `repo.blame` should allow passing `None` as the `rev` parameter. · Issue #1835 · gitpython-developers/GitPython
X Title: `repo.blame` should allow passing `None` as the `rev` parameter. · Issue #1835 · gitpython-developers/GitPython
Description: This issue only affects the type hint given to the rev parameter, as passing None to the function does work and gives the expected behavior, which is running the git blame -p --
Open Graph Description: This issue only affects the type hint given to the rev parameter, as passing None to the function does work and gives the expected behavior, which is running the git blame -p --
X Description: This issue only affects the type hint given to the rev parameter, as passing None to the function does work and gives the expected behavior, which is running the git blame -p -- <file> comman...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/1835
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`repo.blame` should allow passing `None` as the `rev` parameter.","articleBody":"This issue only affects the type hint given to the `rev` parameter, as passing `None` to the function does work and gives the expected behavior, which is running the `git blame -p -- \u003cfile\u003e` command without a revision, which gives back the blame *including* changes to the local working directory that haven't been committed yet.\r\n\r\nWhile the code works at runtime, language servers such as pylance give back an error, as `None` is not a valid type according to the type hints. ","author":{"url":"https://github.com/Gaubbe","@type":"Person","name":"Gaubbe"},"datePublished":"2024-02-21T19:23:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/1835/GitPython/issues/1835"}
| 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:a4a47810-fab0-b8b4-5915-5c172cd3c319 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEEE:3E7096:56DD1E:7976F0:6968CB46 |
| html-safe-nonce | db6f6059102eef98c25914162e8bd3d89b365f2ec0a7f1514a472850cb104f03 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUVFOjNFNzA5Njo1NkREMUU6Nzk3NkYwOjY5NjhDQjQ2IiwidmlzaXRvcl9pZCI6IjI1NDQ1MDc4MDIzODU2OTc2MDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 397e69a6b10a5fffeadfc04f6360aea0339e62a98e68cf7e1fc34d15ba64b69f |
| hovercard-subject-tag | issue:2147517327 |
| 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/1835/issue_layout |
| twitter:image | https://opengraph.githubassets.com/714670bdbb1c8696e0e074481ed1ac3a1b079e9c1556f4acbe38b65e28569c37/gitpython-developers/GitPython/issues/1835 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/714670bdbb1c8696e0e074481ed1ac3a1b079e9c1556f4acbe38b65e28569c37/gitpython-developers/GitPython/issues/1835 |
| og:image:alt | This issue only affects the type hint given to the rev parameter, as passing None to the function does work and gives the expected behavior, which is running the git blame -p -- |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Gaubbe |
| hostname | github.com |
| expected-hostname | github.com |
| None | af2d7af0cc84117fa10bf36808605ef68a335c9d8a804b9cdac55f8d77230b00 |
| 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 | cc844ab6ee0198cc2e2c142dcb8a5c2a61d48743 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width