Title: MyPy 0.750 slow startup (or hang) on macOS · Issue #8055 · python/mypy · GitHub
Open Graph Title: MyPy 0.750 slow startup (or hang) on macOS · Issue #8055 · python/mypy
X Title: MyPy 0.750 slow startup (or hang) on macOS · Issue #8055 · python/mypy
Description: Are you reporting a bug, or opening a feature request? Bug report Please insert below the code you are checking with mypy, or a mock-up repro if the source is private. We would appreciate if you try to simplify your case to a minimal rep...
Open Graph Description: Are you reporting a bug, or opening a feature request? Bug report Please insert below the code you are checking with mypy, or a mock-up repro if the source is private. We would appreciate if you tr...
X Description: Are you reporting a bug, or opening a feature request? Bug report Please insert below the code you are checking with mypy, or a mock-up repro if the source is private. We would appreciate if you tr...
Opengraph URL: https://github.com/python/mypy/issues/8055
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MyPy 0.750 slow startup (or hang) on macOS","articleBody":"* Are you reporting a bug, or opening a feature request?\r\n _Bug report_\r\n* Please insert below the code you are checking with mypy,\r\n or a mock-up repro if the source is private. We would appreciate\r\n if you try to simplify your case to a minimal repro.\r\n _This is not applicable to this bug report._\r\n* What is the actual behavior/output?\r\n _Running the `mypy .` command hangs forever after upgrading to MyPy 0.750 on macOS. Even trying `mypy --version` to verify the installed version hangs forever. Both commands have to be killed with Ctrl+C (pressing that multiple times is required, actually) after several minutes of waiting for output. Also tried uninstalling and re-installing MyPy from scratch with no luck. Only downgrading to 0.740 solves it from hanging forever, but now `mypy --version` takes about 45 seconds instead of \u003c 1 second like it was before upgrading and downgrading, even though it outputs 0.740. Here is example output of killing `mypy --version` under 0.750 after several minutes:_\r\n\r\n ```\r\n $ mypy --version\r\n ^C^C^C^C^C^C^C^C^CTraceback (most recent call last):\r\n File \"/Users/nwilliams/.virtualenvs/pysoa3/bin/mypy\", line 6, in \u003cmodule>\r\n from mypy.__main__ import console_entry\r\n File \"/Users/nwilliams/.virtualenvs/pysoa3/lib/python3.7/site-packages/mypy/__main__.py\", line 4, in \u003cmodule>\r\n from mypy.main import main\r\n File \"mypy/main.py\", line 13, in \u003cmodule>\r\n File \"mypy/build.py\", line 33, in \u003cmodule>\r\n File \"mypy/semanal.py\", line 95, in \u003cmodule>\r\n File \"mypy/typeanal.py\", line 30, in \u003cmodule>\r\n File \"\u003cfrozen importlib._bootstrap>\", line 978, in _find_and_load\r\n KeyboardInterrupt\r\n ```\r\n* What is the behavior/output you expect?\r\n For `mypy .` to run in generally the same amount of time it took previously (~10-15 seconds) and for `mypy --version` to output and exit instantly, instead of hanging forever like they now do.\r\n* What are the versions of mypy and Python you are using?\r\n ```\r\n $ python --version\r\n Python 3.7.4\r\n $ cat ~/.virtualenvs/pysoa3/lib/python3.7/site-packages/mypy/version.py \r\n __version__ = \"0.750\"\r\n ```\r\n _The Python version was installed from Homebrew._\r\n Do you see the same issue after installing mypy from Git master?\r\n _If I `pip install git+https://github.com/python/mypy.git@v0.750`, `mypy .` works. That's the same version (0.750), just installed from Git instead of PyPi. So this appears to be an issue with the PyPi wheel._\r\n* What are the mypy flags you are using? (For example --strict-optional)\r\n ```\r\n [mypy]\r\n python_version = 3.7\r\n check_untyped_defs = True\r\n [mypy-tasks]\r\n ignore_errors = True\r\n [mypy-(several projects listed here).*]\r\n ignore_missing_imports = True\r\n ...\r\n ```\r\n","author":{"url":"https://github.com/nickwilliams-eventbrite","@type":"Person","name":"nickwilliams-eventbrite"},"datePublished":"2019-12-02T21:14:24Z","url":"https://github.com/python/mypy/issues/8055"}
| 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:4583bf21-f4e1-067f-8d21-183a76d562fb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEDE:3AC034:37DAF1:4BD111:6B00296E |
| html-safe-nonce | 8913ef17984def33f23216e8821e7f25f48064364f7330fe19803df56b41be98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRURFOjNBQzAzNDozN0RBRjE6NEJEMTExOjZCMDAyOTZFIiwidmlzaXRvcl9pZCI6IjcyMTYyNDcwODg2NTk1NzMxMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0514fd033de774dca9080188c5bd0c23cc0329e19c468d1330923f4e972ea04e |
| hovercard-subject-tag | issue:531542823 |
| 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/8055/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ed050f38151123b7beeedca38fbc3a3452d8c80b328cd877866c74bd18ea008d/python/mypy/issues/8055 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ed050f38151123b7beeedca38fbc3a3452d8c80b328cd877866c74bd18ea008d/python/mypy/issues/8055 |
| og:image:alt | Are you reporting a bug, or opening a feature request? Bug report Please insert below the code you are checking with mypy, or a mock-up repro if the source is private. We would appreciate if you tr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nickwilliams-eventbrite |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| 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 | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width