Title: Use zero-argument super() by EliahKagan · Pull Request #1726 · gitpython-developers/GitPython · GitHub
Open Graph Title: Use zero-argument super() by EliahKagan · Pull Request #1726 · gitpython-developers/GitPython
X Title: Use zero-argument super() by EliahKagan · Pull Request #1726 · gitpython-developers/GitPython
Description: This replaces 2-argument super(...) calls with the zero-argument super() form everywhere applicable:
All uses of two-argument super in the code are replaced.
All but one mention of two-argument super in comments are replaced.
I had omitted this from #1725 because it may require more technical attention to fully check than other code changes there, and that PR was mostly for comments and docstrings.
Exactly when super() can be used
Since super is in practice one of the most confusing features of Python, I've included this section to help in verifying the changes here, and also so that they could be reverified later. However, this section is optional.
As noted in output of help(super) (which is from this code, though the other documentation can be useful):
super() -> same as super(__class__,
Open Graph Description: This replaces 2-argument super(...) calls with the zero-argument super() form everywhere applicable: All uses of two-argument super in the code are replaced. All but one mention of two-argument su...
X Description: This replaces 2-argument super(...) calls with the zero-argument super() form everywhere applicable: All uses of two-argument super in the code are replaced. All but one mention of two-argument su...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/1726
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:872a18d7-b6b4-b635-cd9f-e8f6c25132fb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EABE:1A4860:20F2DE0:2E1A222:69693BA2 |
| html-safe-nonce | e175884acfaf6fcf89ed9e754846f485b5dda39aefe43ecf184f6b728a83a3fd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUJFOjFBNDg2MDoyMEYyREUwOjJFMUEyMjI6Njk2OTNCQTIiLCJ2aXNpdG9yX2lkIjoiOTE2NTg1MjM3MjAxMTQwMDA5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7a815a7319c69c6299091aa7ad888c0a5b56e775d74ba0b2453622835876400c |
| hovercard-subject-tag | pull_request:1584866435 |
| 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/1726/files |
| twitter:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1771172?s=400&v=4 |
| og:image:alt | This replaces 2-argument super(...) calls with the zero-argument super() form everywhere applicable: All uses of two-argument super in the code are replaced. All but one mention of two-argument su... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 54182691a21263b584d2e600b758e081b0ff1d10ffc0d2eefa51cf754b43b51d |
| 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 | d69ac0477df0f87da03b8b06cebd187012d7a930 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width