Title: Make `ignore_pos_arg_names=False` for overrides when using `--extra-checks` · Issue #20446 · python/mypy · GitHub
Open Graph Title: Make `ignore_pos_arg_names=False` for overrides when using `--extra-checks` · Issue #20446 · python/mypy
X Title: Make `ignore_pos_arg_names=False` for overrides when using `--extra-checks` · Issue #20446 · python/mypy
Description: Feature We can check positional argument names for overriding functions. class A: def f(self, x: int) -> None: pass class B(A): def f(self, _x: int) -> None: # this *should* error, but doesn't currently pass Pitch Well, ignoring position...
Open Graph Description: Feature We can check positional argument names for overriding functions. class A: def f(self, x: int) -> None: pass class B(A): def f(self, _x: int) -> None: # this *should* error, but doesn't curr...
X Description: Feature We can check positional argument names for overriding functions. class A: def f(self, x: int) -> None: pass class B(A): def f(self, _x: int) -> None: # this *should* error, but doesn&...
Opengraph URL: https://github.com/python/mypy/issues/20446
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make `ignore_pos_arg_names=False` for overrides when using `--extra-checks`","articleBody":"**Feature**\n\nWe can check positional argument names for overriding functions.\n\n```py\nclass A:\n def f(self, x: int) -> None:\n pass\n \nclass B(A):\n def f(self, _x: int) -> None: # this *should* error, but doesn't currently\n pass\n```\n\n**Pitch**\n\nWell, ignoring positional arguments is obviously not type safe. It's annoying, sure, but in my mind that's the class of checks that `--extra-checks` encompasses (technically correct but annoying).","author":{"url":"https://github.com/A5rocks","@type":"Person","name":"A5rocks"},"datePublished":"2025-12-19T22:09:28Z","url":"https://github.com/python/mypy/issues/20446"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:a714853f-42f2-4d9b-f22b-8c9b957e0344 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F54:CF959:26697BA:320217D:6AFFF4A8 |
| html-safe-nonce | 538124a68722c78a769d89b0867bcfd3fc0401bacd93c0e06bb4af7017a7b3b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjU0OkNGOTU5OjI2Njk3QkE6MzIwMjE3RDo2QUZGRjRBOCIsInZpc2l0b3JfaWQiOiI2ODA0ODI0ODY1NjM2MzQ5MDk2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1ba21f31e7b75d0805cf2337a309cc239f497cb4ca082754796fa37eb521015a |
| hovercard-subject-tag | issue:3749056976 |
| 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/mypy/20446/issue_layout |
| twitter:image | https://opengraph.githubassets.com/143b913ddc97c2538536925bd5d6188a37964c372ba1454cc397be63fe899b24/python/mypy/issues/20446 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/143b913ddc97c2538536925bd5d6188a37964c372ba1454cc397be63fe899b24/python/mypy/issues/20446 |
| og:image:alt | Feature We can check positional argument names for overriding functions. class A: def f(self, x: int) -> None: pass class B(A): def f(self, _x: int) -> None: # this *should* error, but doesn't curr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | A5rocks |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/mypy git https://github.com/python/mypy.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 7053637 |
| octolytics-dimension-repository_nwo | python/mypy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7053637 |
| octolytics-dimension-repository_network_root_nwo | python/mypy |
| 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 | 16a11879678aaf97e2a42c33ee70830aa084fa37 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width