Title: gh-106368: Argument clinic: Fix minor bug in `state_modulename_name` by AlexWaygood · Pull Request #107387 · python/cpython · GitHub
Open Graph Title: gh-106368: Argument clinic: Fix minor bug in `state_modulename_name` by AlexWaygood · Pull Request #107387 · python/cpython
X Title: gh-106368: Argument clinic: Fix minor bug in `state_modulename_name` by AlexWaygood · Pull Request #107387 · python/cpython
Description: cls on this line could be None, which causes the test case I'm adding in this PR to fail with AttributeError: 'NoneType' object has no attribute 'functions' on the main branch. cpython/Tools/clinic/clinic.py Line 4713 in 0aa58fa print("cls. functions", cls.functions) (This failure path is currently not covered by any test cases, as far as I can tell. The bug is flagged by mypy if you add type annotations to the last remaining untyped function in clinic.py, _module_and_class().) @erlend-aasland: this is another one that could be backported, since it's technically a bugfix, but to me feels minor enough to not be worth it. Issue: gh-106368
Open Graph Description: cls on this line could be None, which causes the test case I'm adding in this PR to fail with AttributeError: 'NoneType' object has no attribute 'functions' on the main branch. ...
X Description: cls on this line could be None, which causes the test case I'm adding in this PR to fail with AttributeError: 'NoneType' object has no attribute 'functions' ...
Opengraph URL: https://github.com/python/cpython/pull/107387
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2cee542c-0c3c-14f1-7e32-37407d40a46b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DA4A:21FEDA:29EAA9:3A76A3:696A7215 |
| html-safe-nonce | efe0183c6ea0b0bf9ebd8b33d85eda22af55f9ada9bfc067625d62cf13a36ef8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTRBOjIxRkVEQToyOUVBQTk6M0E3NkEzOjY5NkE3MjE1IiwidmlzaXRvcl9pZCI6IjgxMTAzOTI3MjQ4NDY5NjUyNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 14d84019a753869553fd7722ffa1d5b391e8026014abe86a97a477c9e5da2b96 |
| hovercard-subject-tag | pull_request:1453690768 |
| 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/python/cpython/pull/107387/files |
| twitter:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/66076021?s=400&v=4 |
| og:image:alt | cls on this line could be None, which causes the test case I'm adding in this PR to fail with AttributeError: 'NoneType' object has no attribute 'functions' on the main branch. ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 6a0b6893c221f98f607598e939299fdf5763435d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width