René's URL Explorer Experiment


Title: Crash with alembic 1.7.0 · Issue #11038 · python/mypy · GitHub

Open Graph Title: Crash with alembic 1.7.0 · Issue #11038 · python/mypy

X Title: Crash with alembic 1.7.0 · Issue #11038 · python/mypy

Description: Crash Report Running mypy in a simple file which uses type annotations from alembic 1.7.0 gives a crash. Works fine with `1.6.5 . Traceback Traceback (most recent call last): File "C:\Python39\lib\runpy.py", line 197, in _run_module_as_m...

Open Graph Description: Crash Report Running mypy in a simple file which uses type annotations from alembic 1.7.0 gives a crash. Works fine with `1.6.5 . Traceback Traceback (most recent call last): File "C:\Python39\lib\...

X Description: Crash Report Running mypy in a simple file which uses type annotations from alembic 1.7.0 gives a crash. Works fine with `1.6.5 . Traceback Traceback (most recent call last): File "C:\Python39...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash with alembic 1.7.0","articleBody":"\r\n**Crash Report**\r\n\r\nRunning `mypy` in a simple file which uses type annotations from [`alembic`](https://github.com/sqlalchemy/alembic) `1.7.0` gives a crash. Works fine with `1.6.5 .\r\n\r\n**Traceback**\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:\\Python39\\lib\\runpy.py\", line 197, in _run_module_as_main\r\n    return _run_code(code, main_globals, None,\r\n  File \"C:\\Python39\\lib\\runpy.py\", line 87, in _run_code\r\n    exec(code, run_globals)\r\n  File \"E:\\projects\\temp\\.env39-alembic-mypy\\Scripts\\mypy.exe\\__main__.py\", line 7, in \u003cmodule>\r\n  File \"e:\\projects\\temp\\.env39-alembic-mypy\\lib\\site-packages\\mypy\\__main__.py\", line 11, in console_entry\r\n    main(None, sys.stdout, sys.stderr)\r\n  File \"mypy\\main.py\", line 87, in main\r\n  File \"mypy\\main.py\", line 165, in run_build\r\n  File \"mypy\\build.py\", line 179, in build\r\n  File \"mypy\\build.py\", line 254, in _build\r\n  File \"mypy\\build.py\", line 2697, in dispatch\r\n  File \"mypy\\build.py\", line 3021, in process_graph\r\n  File \"mypy\\build.py\", line 3138, in process_stale_scc\r\n  File \"mypy\\build.py\", line 2288, in write_cache\r\n  File \"mypy\\build.py\", line 1475, in write_cache\r\n  File \"mypy\\nodes.py\", line 313, in serialize\r\n  File \"mypy\\nodes.py\", line 3149, in serialize\r\n  File \"mypy\\nodes.py\", line 3083, in serialize\r\nAssertionError: Definition of alembic.runtime.migration.EnvironmentContext is unexpectedly incomplete\r\n```\r\n\r\n**To Reproduce**\r\n\r\nFile:\r\n\r\n```python\r\nfrom alembic.operations import Operations\r\n\r\ndef update(op: Operations) -> None:\r\n    ...\r\n```\r\n\r\nCommand-line:\r\n\r\n```\r\nλ mypy foo.py --no-implicit-reexport --show-traceback --ignore-missing-imports\r\n``` \r\n\r\nRelevant information:\r\n\r\n* Crash only happens with `alembic 1.7.0`, works fine with `1.6.5`.\r\n\r\n**Your Environment**\r\n\r\n```\r\nλ pip list\r\nPackage           Version\r\n----------------- --------\r\nalembic           1.7.0\r\ngreenlet          1.1.1\r\nMako              1.1.5\r\nMarkupSafe        2.0.1\r\nmypy              0.910\r\nmypy-extensions   0.4.3\r\npip               21.1.2\r\nsetuptools        57.4.0\r\nSQLAlchemy        1.4.23\r\ntoml              0.10.2\r\ntyping-extensions 3.10.0.2\r\nwheel             0.36.2\r\n```\r\n\r\nOS: Windows 10\r\nPython: 3.9.6\r\n\r\n---\r\n\r\nI was wondering if I should report this in `alembic`'s repository, but given this generates an internal error I figured I should post here first.","author":{"url":"https://github.com/nicoddemus","@type":"Person","name":"nicoddemus"},"datePublished":"2021-08-30T21:28:03Z","url":"https://github.com/python/mypy/issues/11038"}

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:a217a028-5de5-de0c-a2c8-fbb291d485fc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8298:120A77:226E203:2EE2DBB:6B002A9A
html-safe-noncec1d33edeb51902fa3b89de7a8e61d8503aefbe7c3bdd08ca14ca0e233889cbb4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Mjk4OjEyMEE3NzoyMjZFMjAzOjJFRTJEQkI6NkIwMDJBOUEiLCJ2aXNpdG9yX2lkIjoiNDg2NDg5MTM5MjMxODYxNDAyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd8148e8c456e8a3dab915290082249dd3e085abbbdf33a30db4e822580aec324
hovercard-subject-tagissue:983220904
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/11038/issue_layout
twitter:imagehttps://opengraph.githubassets.com/82faf3ec9daf599668cd14bc9308c403a748bfb062310c4912ce52f81475db3a/python/mypy/issues/11038
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/82faf3ec9daf599668cd14bc9308c403a748bfb062310c4912ce52f81475db3a/python/mypy/issues/11038
og:image:altCrash Report Running mypy in a simple file which uses type annotations from alembic 1.7.0 gives a crash. Works fine with `1.6.5 . Traceback Traceback (most recent call last): File "C:\Python39\lib\...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenicoddemus
hostnamegithub.com
expected-hostnamegithub.com
None7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0
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
releasef3f3a43ca095cdea3abbb394112e971f9fdb94fa
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/mypy/issues/11038#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fmypy%2Fissues%2F11038
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%2F11038
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/11038
Reloadhttps://github.com/python/mypy/issues/11038
Reloadhttps://github.com/python/mypy/issues/11038
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 requests547 (547)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/11038
New issuehttps://github.com/login?return_to=https://github.com/python/mypy/issues/11038
#11632https://github.com/python/mypy/pull/11632
Crash with alembic 1.7.0https://github.com/python/mypy/issues/11038#top
#11632https://github.com/python/mypy/pull/11632
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
https://github.com/nicoddemus
nicoddemushttps://github.com/nicoddemus
on Aug 30, 2021https://github.com/python/mypy/issues/11038#issue-983220904
alembichttps://github.com/sqlalchemy/alembic
nicoddemushttps://github.com/nicoddemus
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%22
on Aug 30, 2021https://github.com/python/mypy/issues/11038#event-5228777327
https://github.com/elpablete
elpabletehttps://github.com/elpablete
on Sep 3, 2021https://github.com/python/mypy/issues/11038#issuecomment-912569973
https://github.com/elpablete
elpabletehttps://github.com/elpablete
on Sep 3, 2021https://github.com/python/mypy/issues/11038#issuecomment-912585180
sqlalchemy/alembic#897https://github.com/sqlalchemy/alembic/issues/897
https://github.com/CaselIT
CaselIThttps://github.com/CaselIT
on Sep 6, 2021https://github.com/python/mypy/issues/11038#issuecomment-913855820
sqlalchemy/alembic#897 (comment)https://github.com/sqlalchemy/alembic/issues/897#issuecomment-913855198
https://github.com/Morikko
Morikkohttps://github.com/Morikko
on Oct 19, 2021https://github.com/python/mypy/issues/11038#issuecomment-946517987
sqlalchemy/alembic#897https://github.com/sqlalchemy/alembic/issues/897
https://github.com/CaselIT
CaselIThttps://github.com/CaselIT
on Oct 19, 2021https://github.com/python/mypy/issues/11038#issuecomment-946523015
JukkaLhttps://github.com/JukkaL
completedhttps://github.com/python/mypy/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#11632https://github.com/python/mypy/pull/11632
on Dec 3, 2021https://github.com/python/mypy/issues/11038#event-5712367854
JukkaLhttps://github.com/JukkaL
on Dec 3, 2021https://github.com/python/mypy/issues/11038#event-5712368151
Fix crash involving explicit reexport, import cycle, wildcard (#11632)https://github.com/python/mypy/commit/cee5d3e9a29f43a10a8eeca760976657bf1689c9
#11632https://github.com/python/mypy/pull/11632
https://docs.github.com/articles/closing-issues-via-commit-messages
cee5d3ehttps://github.com/python/mypy/commit/cee5d3e9a29f43a10a8eeca760976657bf1689c9
ilevkivskyihttps://github.com/ilevkivskyi
on Dec 3, 2021https://github.com/python/mypy/issues/11038#event-5712766002
Fix crash involving explicit reexport, import cycle, wildcard (#11632)https://github.com/python/mypy/commit/fdae42fee9231f8605d1d0fa7d635f1e8748769b
#11632https://github.com/python/mypy/pull/11632
https://docs.github.com/articles/closing-issues-via-commit-messages
fdae42fhttps://github.com/python/mypy/commit/fdae42fee9231f8605d1d0fa7d635f1e8748769b
tushar-deepsourcehttps://github.com/tushar-deepsource
on Jan 20, 2022https://github.com/python/mypy/issues/11038#event-5924012529
Fix crash involving explicit reexport, import cycle, wildcard (python…https://github.com/DeepSourceCorp/mypy/commit/eb4fd9721cbf6b326e562fde4ee85f7f4e2b3a98
python…https://github.com/python/mypy/pull/11632
https://docs.github.com/articles/closing-issues-via-commit-messages
eb4fd97https://github.com/DeepSourceCorp/mypy/commit/eb4fd9721cbf6b326e562fde4ee85f7f4e2b3a98
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/mypy/issues/11038
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/mypy/issues/11038
crashhttps://github.com/python/mypy/issues?q=state%3Aopen%20label%3A%22crash%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.