René's URL Explorer Experiment


Title: mypy rejects subclassing `Any` typed `*args` entries within a function · Issue #21998 · python/mypy · GitHub

Open Graph Title: mypy rejects subclassing `Any` typed `*args` entries within a function · Issue #21998 · python/mypy

X Title: mypy rejects subclassing `Any` typed `*args` entries within a function · Issue #21998 · python/mypy

Description: (No AI or LLMs were used in finding or writing up this issue.) In Python and passing other type checkers (e.g. pyright 1.1.414 ) it is ok to subclass a type passed within the *args variadic argument which is typed as Any, but mypy 2.3.1 ...

Open Graph Description: (No AI or LLMs were used in finding or writing up this issue.) In Python and passing other type checkers (e.g. pyright 1.1.414 ) it is ok to subclass a type passed within the *args variadic argumen...

X Description: (No AI or LLMs were used in finding or writing up this issue.) In Python and passing other type checkers (e.g. pyright 1.1.414 ) it is ok to subclass a type passed within the *args variadic argumen...

Opengraph URL: https://github.com/python/mypy/issues/21998

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy rejects subclassing `Any` typed `*args` entries within a function","articleBody":"**(No AI or LLMs were used in finding or writing up this issue.)**\n\nIn Python and passing other type checkers (e.g. pyright 1.1.414 ) it is ok to subclass a type passed within the `*args` variadic argument which is typed as Any, but mypy 2.3.1 and recent master seems to reject this.\n\nE.g. the following Python program runs fine and typechecks via pyright 1.1.414 \n(btw if you have an objection to this on the basis of the intermediate `x` variable, please also see the example pair at the end of the issue showing mypy will allow a keyword arg for a type to subclass but not an element of `*args` without an intermediate variable)\n \nhttps://mypy-play.net/?gist=caa19ef606afd2b352e2e5e3fa608bca \n```\nfrom typing import Any\n\ndef fun_varargs_element_to_type_used_for_inherit(\n   *args: *tuple[int, Any],\n) -> Any:\n  # not allowed by mypy but allowed by pyright and others\n  x = args[1]\n  class Sub(x): pass\n  return Sub()\n\ns = fun_varargs_element_to_type_used_for_inherit(1, str)\nprint('isinstance(s, str): ', isinstance(s, str))\n```\n\nPer pyright 1.1.414  it typechecks and in python 3.13.2 (and 3.12 see gist above) runs and produces valid output:\n```\n(venv) [liveuser@localhost-live mypy]$ pyright ~/examplecomplex2.py\n0 errors, 0 warnings, 0 informations\n(venv) [liveuser@localhost-live mypy]$ python ~/examplecomplex2.py\nisinstance(s, str):  True\n```\n\nBut mypy 2.3.1 rejects it (see mypy playground link and associated gist https://mypy-play.net/?gist=caa19ef606afd2b352e2e5e3fa608bca ) .\n\nHere are some unit test cases showing this behavior as well:\n```\n[case testVarargsArgumentTypeCheckingUsingArgumentTypeFromVarArgsForInheritanceExplicitCastOk]\n# flags: --python-version 3.12\nfrom typing import Any\n\ndef fun_explicit_cast_varargs_element_to_type_used_for_inherit(\n   *args: *tuple[int, Any],\n):\n  # allowed\n  x : type = args[1]\n  class Sub(x): pass\n\nfun_explicit_cast_varargs_element_to_type_used_for_inherit(1, str)\n\n[builtins fixtures/tuple.pyi]\n\n[case testVarargsArgumentTypeCheckingUsingArgumentTypeFromVarArgsForInheritance-xfail]\n# flags: --python-version 3.12\nfrom typing import Any\n\ndef fun_varargs_element_to_type_used_for_inherit(\n   *args: *tuple[int, Any],\n):\n  # not allowed by mypy but allowed by pyright and others\n  x = args[1]\n  class Sub(x): pass\n\nfun_varargs_element_to_type_used_for_inherit(1, str)\n\n[builtins fixtures/tuple.pyi]\n```\n\n---\n\nThe first case passes, the second xfails (I marked it expected fail for now per current behavior) when it should pass it seems.\n\nNote that passing a type via an Any typed keyword parameter is OK-ed by mypy:\nhttps://mypy-play.net/?gist=9ff16e8bc2f873f3fe5d0dcb4ff8baeb\n```\n[liveuser@localhost-live mypy]$ cat ~/examplecomplex3.py\nfrom typing import Any\n\ndef fun_keyword_parameter_to_type_used_for_inherit(\n   *args: *tuple[int, Any],\n   keywordarg: Any\n) -> Any:\n  class Sub(keywordarg): pass\n  return Sub()\n\ns = fun_keyword_parameter_to_type_used_for_inherit(1, 1, keywordarg=str)\nprint('isinstance(s, str): ', isinstance(s, str))\n\n[liveuser@localhost-live mypy]$ python ~/examplecomplex3.py\nisinstance(s, str):  True\n\n[liveuser@localhost-live mypy]$ mypy ~/examplecomplex3.py\nSuccess: no issues found in 1 source file\n```\n\nBut using `args[1]` (an element of the `*args` tuple directly) when Any typed to pass a type for subclassing is not allowed by mypy, while it is allowed by pyright 1.1.414  and python:\nhttps://mypy-play.net/?gist=d12a1ef7f71677f150d09200fadf1958\n```\n[liveuser@localhost-live mypy]$ cat ~/examplecomplex4.py\nfrom typing import Any\n\ndef fun_varargs_element_to_type_used_for_inherit(\n   *args: *tuple[int, Any],\n) -> Any:\n  # not allowed by mypy but allowed by pyright and others\n  class Sub(args[1]): pass\n  return Sub()\n\ns = fun_varargs_element_to_type_used_for_inherit(1, str)\nprint('isinstance(s, str): ', isinstance(s, str))\n\n[liveuser@localhost-live mypy]$ python ~/examplecomplex4.py\nisinstance(s, str):  True\n\n[liveuser@localhost-live mypy]$ pyright ~/examplecomplex4.py\n0 errors, 0 warnings, 0 informations\n\n[liveuser@localhost-live mypy]$ mypy ~/examplecomplex4.py\n/home/liveuser/examplecomplex4.py:7: error: Variable \"args\" is not valid as a type  [valid-type]\n/home/liveuser/examplecomplex4.py:7: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases\n/home/liveuser/examplecomplex4.py:7: error: Invalid base class \"args\"  [misc]\n/home/liveuser/examplecomplex4.py:7: error: Invalid type: try using Literal[1] instead?  [valid-type]\nFound 3 errors in 1 file (checked 1 source file)\n```\n\n(Note the above typechecks fine in pyright 1.1.414  ) \n\n- Mypy version used: 2.3.1 (and recent master)\n- Mypy command-line flags: None\n- Mypy configuration options from `mypy.ini` (and other config files): defaults\n- Python version used: 3.12 and 3.13.2\n\nThanks so much for building this tool!","author":{"url":"https://github.com/willy-b","@type":"Person","name":"willy-b"},"datePublished":"2026-09-16T20:29:09Z","url":"https://github.com/python/mypy/issues/21998"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9025d6ec-096f-54f8-d644-c10ac0081e4e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id87B4:1AEC58:14B704:1BB510:6B001F08
html-safe-nonce6bb5895739cba8d2f2df1743c283d5af11a09ab1f0fc8889dc837a5313a26f6b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0I0OjFBRUM1ODoxNEI3MDQ6MUJCNTEwOjZCMDAxRjA4IiwidmlzaXRvcl9pZCI6IjQ1NzgzMzI4NTg5Nzk5ODMxMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3370874a2727d3cb842a6e236c625f4f3ed72120c21c6def5b9da97fecb4656c
hovercard-subject-tagissue:5479582277
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/mypy/21998/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6f716c563794609b193c5f59f82ecc08dfaf5823e3d9c66c7088bc0a2c69dd32/python/mypy/issues/21998
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6f716c563794609b193c5f59f82ecc08dfaf5823e3d9c66c7088bc0a2c69dd32/python/mypy/issues/21998
og:image:alt(No AI or LLMs were used in finding or writing up this issue.) In Python and passing other type checkers (e.g. pyright 1.1.414 ) it is ok to subclass a type passed within the *args variadic argumen...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewilly-b
hostnamegithub.com
expected-hostnamegithub.com
None4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0
turbo-cache-controlno-preview
go-importgithub.com/python/mypy git https://github.com/python/mypy.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id7053637
octolytics-dimension-repository_nwopython/mypy
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7053637
octolytics-dimension-repository_network_root_nwopython/mypy
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release44c658b24abf00491fb7ae5f56d42c9f38cbeab2
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/21998#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F21998
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F21998
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fmypy
Reloadhttps://github.com/python/mypy/issues/21998
Reloadhttps://github.com/python/mypy/issues/21998
Reloadhttps://github.com/python/mypy/issues/21998
pythonhttps://github.com/python
mypyhttps://github.com/python/mypy
Codehttps://github.com/python/mypy
Issues2.7k (2.7k)https://github.com/python/mypy/issues
Pull requests546 (546)https://github.com/python/mypy/pulls
Actionshttps://github.com/python/mypy/actions
Projectshttps://github.com/python/mypy/projects
Wikihttps://github.com/python/mypy/wiki
Security and qualityhttps://github.com/python/mypy/security
Insightshttps://github.com/python/mypy/insights
https://github.com/python/mypy
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/21998
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/21998
#22037https://github.com/python/mypy/pull/22037
mypy rejects subclassing Any typed *args entries within a functionhttps://github.com/python/mypy/issues/21998#top
#22037https://github.com/python/mypy/pull/22037
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
topic-callsFunction calls, *args, **kwargs, defaultshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-calls%22
https://github.com/willy-b
willy-bhttps://github.com/willy-b
on Sep 16, 2026https://github.com/python/mypy/issues/21998#issue-5479582277
https://mypy-play.net/?gist=caa19ef606afd2b352e2e5e3fa608bcahttps://mypy-play.net/?gist=caa19ef606afd2b352e2e5e3fa608bca
https://mypy-play.net/?gist=caa19ef606afd2b352e2e5e3fa608bcahttps://mypy-play.net/?gist=caa19ef606afd2b352e2e5e3fa608bca
https://mypy-play.net/?gist=9ff16e8bc2f873f3fe5d0dcb4ff8baebhttps://mypy-play.net/?gist=9ff16e8bc2f873f3fe5d0dcb4ff8baeb
https://mypy-play.net/?gist=d12a1ef7f71677f150d09200fadf1958https://mypy-play.net/?gist=d12a1ef7f71677f150d09200fadf1958
willy-bhttps://github.com/willy-b
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
on Sep 16, 2026https://github.com/python/mypy/issues/21998#event-31274135098
https://github.com/willy-b
willy-bhttps://github.com/willy-b
on Sep 16, 2026https://github.com/python/mypy/issues/21998#issuecomment-5704547093
#5865https://github.com/python/mypy/issues/5865
A5rockshttps://github.com/A5rocks
topic-callsFunction calls, *args, **kwargs, defaultshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-calls%22
on Sep 17, 2026https://github.com/python/mypy/issues/21998#event-31285758914
https://github.com/willy-b
willy-bhttps://github.com/willy-b
on Sep 21, 2026https://github.com/python/mypy/issues/21998#issuecomment-5765387810
#21907https://github.com/python/mypy/issues/21907
ilevkivskyihttps://github.com/ilevkivskyi
on Sep 22, 2026https://github.com/python/mypy/issues/21998#event-31596377338
benjaminkincseshttps://github.com/benjaminkincses
on Sep 24, 2026https://github.com/python/mypy/issues/21998#event-31775381949
Restore mypy core modules deleted by bad pushhttps://github.com/benjaminkincses/mypy/commit/868b5419f649205d024b12c4caf77be6e4122849
868b541https://github.com/benjaminkincses/mypy/commit/868b5419f649205d024b12c4caf77be6e4122849
Restore python#21998 implementation lost in bad mergehttps://github.com/benjaminkincses/mypy/commit/4e5a0449a58e01fcfdd202f30e45fcc1d5dcecde
python#21998https://github.com/python/mypy/issues/21998
4e5a044https://github.com/benjaminkincses/mypy/commit/4e5a0449a58e01fcfdd202f30e45fcc1d5dcecde
https://github.com/willy-b
willy-bhttps://github.com/willy-b
on Sep 27, 2026https://github.com/python/mypy/issues/21998#issuecomment-5858416723
#22002https://github.com/python/mypy/pull/22002
@dibrinsoforhttps://github.com/dibrinsofor
#21907https://github.com/python/mypy/issues/21907
https://github.com/willy-b
willy-bhttps://github.com/willy-b
on Oct 5, 2026https://github.com/python/mypy/issues/21998#issuecomment-5995586926
@ilevkivskyihttps://github.com/ilevkivskyi
#21907https://github.com/python/mypy/issues/21907
https://github.com/willy-b
willy-bhttps://github.com/willy-b
on Oct 26, 2026https://github.com/python/mypy/issues/21998#issuecomment-6424274633
https://pyrefly.org/en/docs/error-kinds/#invalid-inheritancehttps://pyrefly.org/en/docs/error-kinds/#invalid-inheritance
https://pyrefly.org/sandbox/?project=v2.pZRBCsMgEEWvMpCFoZS6zykK3QbENpJ0oyFqobfvd7TFUAgt2SVDxuj85_tDmYcKUKXtU816QWDQh4reDAqxYBMTtBlaHpPuWLO9ZQzwyNOrdNVqBEWUr-UlXvHelVg--KUyp57O_8OfE8S9zSiIinF4ivkmcazRL2W0fOfZ0DkXqIwGJgMIY4QvEfCptw1UaWgKYfadlO92t4zSWDm4m5erDkkJXf3Qd7bwejlyzJ_HsntAEpkjsYWRSBThi00yXghttps://pyrefly.org/sandbox/?project=v2.pZRBCsMgEEWvMpCFoZS6zykK3QbENpJ0oyFqobfvd7TFUAgt2SVDxuj85_tDmYcKUKXtU816QWDQh4reDAqxYBMTtBlaHpPuWLO9ZQzwyNOrdNVqBEWUr-UlXvHelVg--KUyp57O_8OfE8S9zSiIinF4ivkmcazRL2W0fOfZ0DkXqIwGJgMIY4QvEfCptw1UaWgKYfadlO92t4zSWDm4m5erDkkJXf3Qd7bwejlyzJ_HsntAEpkjsYWRSBThi00yXg
invalid-inheritancehttps://pyrefly.org/en/docs/error-kinds/#invalid-inheritance
https://pyrefly.org/sandbox/?project=v2.pZRBCoMwEEWvMtBFRKTBracodKkSbA1aaJNiEs_fn8RKpCBIdzJmQph5_x1QZp4AKuZuArJGyKd8SQU16SAg4YzsBRaE54wQqM3CwHJ_tqLcOgSvxpYKL-C2aFQgBN9hsInJMt9Rly02SRRze3W3tVot21sp9T8DHH5Mhx5YRvAbFfFhSS7gtpAJYkUal6WMll8GTnSJBVrGCfsBnsHBsYDi3KgT9CpptPZtKs6_7XoauFS813fDNx2cPO7d3D2CubfXkQ7MGlz7D3wsssf20GOePJzYpekDhttps://pyrefly.org/sandbox/?project=v2.pZRBCoMwEEWvMtBFRKTBracodKkSbA1aaJNiEs_fn8RKpCBIdzJmQph5_x1QZp4AKuZuArJGyKd8SQU16SAg4YzsBRaE54wQqM3CwHJ_tqLcOgSvxpYKL-C2aFQgBN9hsInJMt9Rly02SRRze3W3tVot21sp9T8DHH5Mhx5YRvAbFfFhSS7gtpAJYkUal6WMll8GTnSJBVrGCfsBnsHBsYDi3KgT9CpptPZtKs6_7XoauFS813fDNx2cPO7d3D2CubfXkQ7MGlz7D3wsssf20GOePJzYpekD
https://github.com/willy-b
willy-bhttps://github.com/willy-b
on Oct 27, 2026https://github.com/python/mypy/issues/21998#issuecomment-6450623719
https://pyright-play.net/?code=GYJw9gtgBALgngBwJYDsDmUkQWEMoCCKcAUCQCYCmwUwArigPoBuAhiO2gM6OUA2lCJRQxGMMGMSVGdLpXKNguRqgAWlEEhgAKElH0AqTlwBcUAzDoIBAbVQwANIWIBdByQCUUALQA%2BZ3AmelAglMyUrHySCJTaxjYAjC4ewQDGfKxcXFAAynQARnEg3InJZgiZXMGhliAouQXaKSTZALy0DCzsxrwCQiJiEvAxMnIKSiAqKOqaOglOXDAgKQiaItoA5EhcqIusKKmxXAtLHmYbTtu7MPuH2sdQi8seQAhttps://pyright-play.net/?code=GYJw9gtgBALgngBwJYDsDmUkQWEMoCCKcAUCQCYCmwUwArigPoBuAhiO2gM6OUA2lCJRQxGMMGMSVGdLpXKNguRqgAWlEEhgAKElH0AqTlwBcUAzDoIBAbVQwANIWIBdByQCUUALQA%2BZ3AmelAglMyUrHySCJTaxjYAjC4ewQDGfKxcXFAAynQARnEg3InJZgiZXMGhliAouQXaKSTZALy0DCzsxrwCQiJiEvAxMnIKSiAqKOqaOglOXDAgKQiaItoA5EhcqIusKKmxXAtLHmYbTtu7MPuH2sdQi8seQA
https://private-user-images.githubusercontent.com/6969859/686579397-93fadae3-18b5-403a-a729-a26c5bb3d69b.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUxNzAzNTcsIm5iZiI6MTc5NTE3MDA1NywicGF0aCI6Ii82OTY5ODU5LzY4NjU3OTM5Ny05M2ZhZGFlMy0xOGI1LTQwM2EtYTcyOS1hMjZjNWJiM2Q2OWIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjBUMTAyMDU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzU2N2IyYWNlOGEzNTI5YTcxYTc5YzRlZGZkNzI0MGI1NDU2M2M4YzVhMjBkZmZhOTgzOWY3ZmE5YTQwOTlkZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.O227rrpB1T7qf-sUfMaq8J3bLQ6JTzQPHZdghRt6yNE
https://github.com/willy-b
willy-bhttps://github.com/willy-b
on Nov 7, 2026https://github.com/python/mypy/issues/21998#issuecomment-6699797335
https://pyrefly.org/en/docs/error-kinds/#invalid-inheritancehttps://pyrefly.org/en/docs/error-kinds/#invalid-inheritance
pyrefly-org/pyrefly#5397 (comment)https://github.com/pyrefly-org/pyrefly/issues/5397#issuecomment-6651340297
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/21998
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/21998
bugmypy got something wronghttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22bug%22
topic-callsFunction calls, *args, **kwargs, defaultshttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22topic-calls%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.