René's URL Explorer Experiment


Title: problem with `ABCMeta` as base class inside an iter without annotation · Issue #9838 · python/mypy · GitHub

Open Graph Title: problem with `ABCMeta` as base class inside an iter without annotation · Issue #9838 · python/mypy

X Title: problem with `ABCMeta` as base class inside an iter without annotation · Issue #9838 · python/mypy

Description: Crash Report Mypy crashed, the code snippet below is enough to reproduce that. Traceback bug.py:34: error: INTERNAL ERROR -- Please try using mypy master on Github: https://mypy.rtfd.io/en/latest/common_issues.html#using-a-development-my...

Open Graph Description: Crash Report Mypy crashed, the code snippet below is enough to reproduce that. Traceback bug.py:34: error: INTERNAL ERROR -- Please try using mypy master on Github: https://mypy.rtfd.io/en/latest/c...

X Description: Crash Report Mypy crashed, the code snippet below is enough to reproduce that. Traceback bug.py:34: error: INTERNAL ERROR -- Please try using mypy master on Github: https://mypy.rtfd.io/en/latest/c...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"problem with `ABCMeta` as base class inside an iter without annotation","articleBody":"\u003c!--\r\n  Use this form only if mypy reports an \"INTERNAL ERROR\" and/or gives a traceback.\r\n  Please include the traceback and all other messages below (use `mypy --show-traceback`).\r\n-->\r\n\r\n**Crash Report**\r\n\r\nMypy crashed, the code snippet below is enough to reproduce that.\r\n\r\n**Traceback**\r\n\r\n```\r\nbug.py:34: error: INTERNAL ERROR -- Please try using mypy master on Github:\r\nhttps://mypy.rtfd.io/en/latest/common_issues.html#using-a-development-mypy-build\r\nPlease report a bug at https://github.com/python/mypy/issues\r\nversion: 0.790\r\nTraceback (most recent call last):\r\n  File \"/usr/bin/mypy\", line 33, in \u003cmodule>\r\n    sys.exit(load_entry_point('mypy==0.790', 'console_scripts', 'mypy')())\r\n  File \"/usr/lib/python3.9/site-packages/mypy/__main__.py\", line 8, in console_entry\r\n    main(None, sys.stdout, sys.stderr)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/main.py\", line 90, in main\r\n    res = build.build(sources, options, None, flush_errors, fscache, stdout, stderr)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/build.py\", line 180, in build\r\n    result = _build(\r\n  File \"/usr/lib/python3.9/site-packages/mypy/build.py\", line 254, in _build\r\n    graph = dispatch(sources, manager, stdout)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/build.py\", line 2630, in dispatch\r\n    process_graph(graph, manager)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/build.py\", line 2953, in process_graph\r\n    process_stale_scc(graph, scc, manager)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/build.py\", line 3051, in process_stale_scc\r\n    graph[id].type_check_first_pass()\r\n  File \"/usr/lib/python3.9/site-packages/mypy/build.py\", line 2111, in type_check_first_pass\r\n    self.type_checker().check_first_pass()\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checker.py\", line 294, in check_first_pass\r\n    self.accept(d)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checker.py\", line 401, in accept\r\n    stmt.accept(self)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/nodes.py\", line 1130, in accept\r\n    return visitor.visit_for_stmt(self)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checker.py\", line 3479, in visit_for_stmt\r\n    iterator_type, item_type = self.analyze_iterable_item_type(s.expr)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checker.py\", line 3499, in analyze_iterable_item_type\r\n    iterator = echk.check_method_call_by_name('__iter__', iterable, [], [], expr)[0]\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checkexpr.py\", line 2345, in check_method_call_by_name\r\n    method_type = analyze_member_access(method, base_type, context, False, False, True,\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checkmember.py\", line 126, in analyze_member_access\r\n    result = _analyze_member_access(name, typ, mx, override_info)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checkmember.py\", line 155, in _analyze_member_access\r\n    return _analyze_member_access(name, tuple_fallback(typ), mx, override_info)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checkmember.py\", line 143, in _analyze_member_access\r\n    return analyze_instance_member_access(name, typ, mx, override_info)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/checkmember.py\", line 215, in analyze_instance_member_access\r\n    dispatched_type = meet.meet_types(mx.original_type, typ)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/meet.py\", line 50, in meet_types\r\n    return t.accept(TypeMeetVisitor(s))\r\n  File \"/usr/lib/python3.9/site-packages/mypy/types.py\", line 794, in accept\r\n    return visitor.visit_instance(self)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/meet.py\", line 526, in visit_instance\r\n    return meet_types(t, self.s)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/meet.py\", line 50, in meet_types\r\n    return t.accept(TypeMeetVisitor(s))\r\n  File \"/usr/lib/python3.9/site-packages/mypy/types.py\", line 1347, in accept\r\n    return visitor.visit_tuple_type(self)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/meet.py\", line 588, in visit_tuple_type\r\n    return t.copy_modified(items=[meet_types(it, self.s.args[0]) for it in t.items])\r\n  File \"/usr/lib/python3.9/site-packages/mypy/meet.py\", line 588, in \u003clistcomp>\r\n    return t.copy_modified(items=[meet_types(it, self.s.args[0]) for it in t.items])\r\n  File \"/usr/lib/python3.9/site-packages/mypy/meet.py\", line 50, in meet_types\r\n    return t.accept(TypeMeetVisitor(s))\r\n  File \"/usr/lib/python3.9/site-packages/mypy/types.py\", line 1098, in accept\r\n    return visitor.visit_callable_type(self)\r\n  File \"/usr/lib/python3.9/site-packages/mypy/meet.py\", line 540, in visit_callable_type\r\n    if not ((t.is_type_obj() and t.type_object().is_abstract) or\r\n  File \"/usr/lib/python3.9/site-packages/mypy/types.py\", line 1094, in type_object\r\n    assert isinstance(ret, Instance)\r\nAssertionError:\r\nbug.py:34: : note: use --pdb to drop into pdb\r\n```\r\n\r\n**To Reproduce**\r\n\r\n```pyhton\r\nimport abc\r\n\r\n\r\nclass IClass(metaclass=abc.ABCMeta):\r\n    \"\"\"Base class\"\"\"\r\n\r\n\r\nclass A(IClass):\r\n    def __init__(self, el: str, a: IClass) -> None:\r\n        self._el = el\r\n        self._a = a\r\n\r\n\r\nclass B(IClass):\r\n    def __init__(self, b: float) -> None:\r\n        self._b = b\r\n\r\n\r\ndef C(b):\r\n    return A('-', B(b))\r\n\r\n\r\nclass D(IClass):\r\n    def __init__(self, b: float) -> None:\r\n        self._b = b\r\n\r\n\r\nbuilders = (\r\n        C,\r\n        D,\r\n)\r\n\r\n\r\nfor builder in builders:\r\n    pass\r\n```\r\n\r\n**Your Environment**\r\n\r\n\u003c!-- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n- Mypy version used: 0.790\r\n- Mypy command-line flags: None\r\n- Mypy configuration options from `mypy.ini` (and other config files): default\r\n- Python version used: 3.6 and 3.9\r\n- Operating system and version: ArchLinux\r\n\r\n\u003c!--\r\nYou can freely edit this text, please remove all the lines\r\nyou believe are unnecessary.\r\n-->\r\n","author":{"url":"https://github.com/idrissbellil","@type":"Person","name":"idrissbellil"},"datePublished":"2020-12-26T18:07:52Z","url":"https://github.com/python/mypy/issues/9838"}

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:9be63a62-c692-ee12-7769-2a813a6afc6a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id959E:1B0A31:2164268:2D694B3:6B002533
html-safe-nonce5f495b1ca401756c3b5da3d7d4049a16f9d0c9fce0b43aa6a81a096b405f78d3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTlFOjFCMEEzMToyMTY0MjY4OjJENjk0QjM6NkIwMDI1MzMiLCJ2aXNpdG9yX2lkIjoiOTEwNTIwNzgxNjA3MDYzNjg1MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca6b8cd2958af19c09aebf01e4a22572ce08f4a7eadbaf552f6081bd11de87c65
hovercard-subject-tagissue:774912643
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/9838/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e21c461a8e91b38c637304af730f0c1b856f8d495fe34202765e464afcb386be/python/mypy/issues/9838
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e21c461a8e91b38c637304af730f0c1b856f8d495fe34202765e464afcb386be/python/mypy/issues/9838
og:image:altCrash Report Mypy crashed, the code snippet below is enough to reproduce that. Traceback bug.py:34: error: INTERNAL ERROR -- Please try using mypy master on Github: https://mypy.rtfd.io/en/latest/c...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameidrissbellil
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/9838#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F9838
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%2F9838
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/9838
Reloadhttps://github.com/python/mypy/issues/9838
Reloadhttps://github.com/python/mypy/issues/9838
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/9838
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/9838
#13648https://github.com/python/mypy/pull/13648
problem with ABCMeta as base class inside an iter without annotationhttps://github.com/python/mypy/issues/9838#top
#13648https://github.com/python/mypy/pull/13648
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
https://github.com/idrissbellil
idrissbellilhttps://github.com/idrissbellil
on Dec 26, 2020https://github.com/python/mypy/issues/9838#issue-774912643
idrissbellilhttps://github.com/idrissbellil
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
on Dec 26, 2020https://github.com/python/mypy/issues/9838#event-4149757078
idrissbellilhttps://github.com/idrissbellil
on Dec 26, 2020https://github.com/python/mypy/issues/9838#event-4149757566
idrissbellilhttps://github.com/idrissbellil
on Dec 28, 2020https://github.com/python/mypy/issues/9838#event-4151938040
https://github.com/gvanrossum
gvanrossumhttps://github.com/gvanrossum
on Jan 2, 2021https://github.com/python/mypy/issues/9838#issuecomment-753436824
JukkaLhttps://github.com/JukkaL
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%22
on Jan 6, 2021https://github.com/python/mypy/issues/9838#event-4176469933
Michael0x2ahttps://github.com/Michael0x2a
on Sep 12, 2022https://github.com/python/mypy/issues/9838#event-7363559857
Fix joining a function against metaclass-using object constructorshttps://github.com/Michael0x2a/mypy/commit/24d8733b8ad128710e50256e109bc0471f8a7867
https://docs.github.com/articles/closing-issues-via-commit-messages
24d8733https://github.com/Michael0x2a/mypy/commit/24d8733b8ad128710e50256e109bc0471f8a7867
Michael0x2ahttps://github.com/Michael0x2a
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#13648https://github.com/python/mypy/pull/13648
on Sep 25, 2022https://github.com/python/mypy/issues/9838#event-7454077123
Michael0x2ahttps://github.com/Michael0x2a
on Sep 25, 2022https://github.com/python/mypy/issues/9838#event-7454077166
Fix joining a function against metaclass-using object constructors (#…https://github.com/python/mypy/commit/f5ce4ee6ca7e2d8bb1cde8a2b49865f53bbacff5
#…https://github.com/python/mypy/pull/13648
https://docs.github.com/articles/closing-issues-via-commit-messages
f5ce4eehttps://github.com/python/mypy/commit/f5ce4ee6ca7e2d8bb1cde8a2b49865f53bbacff5
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/9838
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/9838
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
priority-0-highhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22priority-0-high%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.