Title: Cannot run mypy on the directory installed by `pip install -e .` · Issue #5316 · python/mypy · GitHub
Open Graph Title: Cannot run mypy on the directory installed by `pip install -e .` · Issue #5316 · python/mypy
X Title: Cannot run mypy on the directory installed by `pip install -e .` · Issue #5316 · python/mypy
Description: Are you reporting a bug, or opening a feature request? Reporting a bug. 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 minim...
Open Graph Description: Are you reporting a bug, or opening a feature request? Reporting a bug. Please insert below the code you are checking with mypy, or a mock-up repro if the source is private. We would appreciate if ...
X Description: Are you reporting a bug, or opening a feature request? Reporting a bug. Please insert below the code you are checking with mypy, or a mock-up repro if the source is private. We would appreciate if ...
Opengraph URL: https://github.com/python/mypy/issues/5316
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot run mypy on the directory installed by `pip install -e .`","articleBody":"* Are you reporting a bug, or opening a feature request?\r\n\r\nReporting a bug.\r\n\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\r\nExecute `pip install -e .` in the directory which contains empty `a.py` file and `setup.py` file as below:\r\n\r\n```python\r\nfrom setuptools import setup\r\n\r\nsetup(\r\n name='a',\r\n version='0.0.1',\r\n py_modules=['a'],\r\n)\r\n```\r\n\r\nThen run `mypy a.py`.\r\n\r\n* What is the actual behavior/output?\r\n\r\nOutput:\r\n\r\n```\r\n/path/to/current/dir is in the PYTHONPATH. Please change directory so it is not.\r\n```\r\n\r\n* What is the behavior/output you expect?\r\n\r\nRun type check.\r\n\r\n* What are the versions of mypy and Python you are using?\r\n Do you see the same issue after installing mypy from Git master?\r\n\r\nPython: 3.6.5\r\nMypy: Latest git master (0.620+dev-f5058bcb269a55b33a02c3e3fd345541839bf06e)","author":{"url":"https://github.com/miyakogi","@type":"Person","name":"miyakogi"},"datePublished":"2018-07-04T05:10:50Z","url":"https://github.com/python/mypy/issues/5316"}
| 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:ddd60883-245a-3440-fc63-073e658cf87f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A092:2DB985:10989B:173D8E:6B006423 |
| html-safe-nonce | ad358a940831cd4bc922f8cc3ee0d46d6e1754e95dad196a3e39142122cf0b85 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDkyOjJEQjk4NToxMDk4OUI6MTczRDhFOjZCMDA2NDIzIiwidmlzaXRvcl9pZCI6IjQ2OTA0OTY4MDYwODgzNjkxODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c9e3e42322abbff9b9bbf57dc1cdd859c4a7baf15ecf745b445b670ad2ea964c |
| hovercard-subject-tag | issue:338132091 |
| 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/5316/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eb44ae25519c0a0e4f7d61b76a3fe731b3c5b4c1836fe2d10680550ac6d56701/python/mypy/issues/5316 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eb44ae25519c0a0e4f7d61b76a3fe731b3c5b4c1836fe2d10680550ac6d56701/python/mypy/issues/5316 |
| og:image:alt | Are you reporting a bug, or opening a feature request? Reporting a bug. Please insert below the code you are checking with mypy, or a mock-up repro if the source is private. We would appreciate if ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | miyakogi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 25854482a1773a7c1ebb8be3d2bc1c6e61d82d78126be63b5044474a86d44d9e |
| 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 | e4f5c239e31f1f680e6bbc419ff92d774da616ec |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width