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/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:02aa7f0d-9107-ff2c-e6b5-39e1ee1e721d |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D0B4:1D81B0:CC64A9:1193775:696A8D40 |
| html-safe-nonce | 2f845362029c3defd0dd820be9c4dda55f2f0f7c1518be20a4669e24df669f17 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEI0OjFEODFCMDpDQzY0QTk6MTE5Mzc3NTo2OTZBOEQ0MCIsInZpc2l0b3JfaWQiOiI5MDM0MjU0MDU4NjY1OTcxMDA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5647a2cecb907779608af8371b817c5d7cdc5de1dbdfbf89047b01793906c8b9 |
| hovercard-subject-tag | pull_request:1453690768 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/checks |
| 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 | d2aa6dedd7d97fa651b17c40401f2605f309df5ca5fb659bf0554cf34f1de825 |
| turbo-cache-control | no-preview |
| 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 full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c1dbca8981c5e3d6a69bce2f1d289e732b86241d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width