Title: PEP 695: not all name collisions are tested · Issue #105437 · python/cpython · GitHub
Open Graph Title: PEP 695: not all name collisions are tested · Issue #105437 · python/cpython
X Title: PEP 695: not all name collisions are tested · Issue #105437 · python/cpython
Description: Right now there are two tests for name colisions of type parameters of type aliases and functions: cpython/Lib/test/test_type_params.py Lines 11 to 12 in 27c68a6 def test_name_collision_01(self): check_syntax_error(self, """def func[**A,...
Open Graph Description: Right now there are two tests for name colisions of type parameters of type aliases and functions: cpython/Lib/test/test_type_params.py Lines 11 to 12 in 27c68a6 def test_name_collision_01(self): c...
X Description: Right now there are two tests for name colisions of type parameters of type aliases and functions: cpython/Lib/test/test_type_params.py Lines 11 to 12 in 27c68a6 def test_name_collision_01(self): c...
Opengraph URL: https://github.com/python/cpython/issues/105437
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PEP 695: not all name collisions are tested","articleBody":"Right now there are two tests for name colisions of type parameters of type aliases and functions:\r\n- https://github.com/python/cpython/blob/27c68a6d8f20090310450862c2c299bb7ba3c160/Lib/test/test_type_params.py#L11-L12\r\n- https://github.com/python/cpython/blob/27c68a6d8f20090310450862c2c299bb7ba3c160/Lib/test/test_type_aliases.py#L11-L12\r\n\r\nThey only test `A` and `**A` collide. But, PEP clearly states that `A` and `*A` collide as well.\r\nI will send a PR.\r\n\r\nI am really sorry that I have to put all my review comments to https://github.com/python/cpython/pull/103764 as separate issues, but I've missed my chance to properly review the PEP's implementation.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-105438\n* gh-105452\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/sobolevn","@type":"Person","name":"sobolevn"},"datePublished":"2023-06-07T10:25:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/105437/cpython/issues/105437"}
| 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:f0b03695-1275-b1f5-0b44-259aa7582867 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C866:1D195C:FCC129:1526B80:6969919F |
| html-safe-nonce | 7447623693e9b00287496ca5e809500c0bf840c040121ea30c9dfcee45f478d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODY2OjFEMTk1QzpGQ0MxMjk6MTUyNkI4MDo2OTY5OTE5RiIsInZpc2l0b3JfaWQiOiI1ODg5MzYyOTY3NDAzMjcwNTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0ad10720e46b5ddb54e48ca27230631b4877ba24cad0449ebab5bd24ae9730d9 |
| hovercard-subject-tag | issue:1745573966 |
| 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/python/cpython/105437/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5e8a32273e1354f3659fac3cb61269f10906a260dc7c76779730627b6c57c1b/python/cpython/issues/105437 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5e8a32273e1354f3659fac3cb61269f10906a260dc7c76779730627b6c57c1b/python/cpython/issues/105437 |
| og:image:alt | Right now there are two tests for name colisions of type parameters of type aliases and functions: cpython/Lib/test/test_type_params.py Lines 11 to 12 in 27c68a6 def test_name_collision_01(self): c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sobolevn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width