Title: Fix typing issues with delete_head and Remote.add by rra · Pull Request #1346 · gitpython-developers/GitPython · GitHub
Open Graph Title: Fix typing issues with delete_head and Remote.add by rra · Pull Request #1346 · gitpython-developers/GitPython
X Title: Fix typing issues with delete_head and Remote.add by rra · Pull Request #1346 · gitpython-developers/GitPython
Description: delete_head and Head.delete historically accept either Head objects or a str name of a head. Adjust the typing to match. Using assignment to make add an alias for create unfortunately confuses mypy, since it loses track of the fact that it's a classmethod and starts treating it like a staticmethod. Replace with a stub wrapper instead.
Open Graph Description: delete_head and Head.delete historically accept either Head objects or a str name of a head. Adjust the typing to match. Using assignment to make add an alias for create unfortunately confuses myp...
X Description: delete_head and Head.delete historically accept either Head objects or a str name of a head. Adjust the typing to match. Using assignment to make add an alias for create unfortunately confuses myp...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/1346
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:99fcd0c7-0372-ef2d-7cc0-592287fee151 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E408:26204A:11499BE:1733281:6969A8A2 |
| html-safe-nonce | 045f95872eb4e226a429d842de7267cf61d60f5e719abb14e877cd022b6b16ee |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDA4OjI2MjA0QToxMTQ5OUJFOjE3MzMyODE6Njk2OUE4QTIiLCJ2aXNpdG9yX2lkIjoiNTY3NTEwMzQ5NDQzNTYxMjgzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1a60b2760c38f50a581429329a0433b382c43c7cc7196d232ecbbc3de3e39e3b |
| hovercard-subject-tag | pull_request:737940711 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/gitpython-developers/GitPython/pull/1346/files |
| twitter:image | https://avatars.githubusercontent.com/u/302330?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/302330?s=400&v=4 |
| og:image:alt | delete_head and Head.delete historically accept either Head objects or a str name of a head. Adjust the typing to match. Using assignment to make add an alias for create unfortunately confuses myp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width