Title: 0.971: Namespace packages -> Source file found twice under different module names · Issue #13202 · python/mypy · GitHub
Open Graph Title: 0.971: Namespace packages -> Source file found twice under different module names · Issue #13202 · python/mypy
X Title: 0.971: Namespace packages -> Source file found twice under different module names · Issue #13202 · python/mypy
Description: Bug Report With mypy 0.961 I was able to scan my namespace packages without any issue. I've just upgraded today to 0.971, and I'm now getting a Source file found twice under different module names error. $ pdm run mypy src src/namespace/...
Open Graph Description: Bug Report With mypy 0.961 I was able to scan my namespace packages without any issue. I've just upgraded today to 0.971, and I'm now getting a Source file found twice under different module names ...
X Description: Bug Report With mypy 0.961 I was able to scan my namespace packages without any issue. I've just upgraded today to 0.971, and I'm now getting a Source file found twice under different modul...
Opengraph URL: https://github.com/python/mypy/issues/13202
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"0.971: Namespace packages -> Source file found twice under different module names","articleBody":"**Bug Report**\r\n\r\nWith mypy 0.961 I was able to scan my namespace packages without any issue. I've just upgraded today to 0.971, and I'm now getting a `Source file found twice under different module names` error.\r\n\r\n```console\r\n$ pdm run mypy src\r\nsrc/namespace/package/module.py: error: Source file found twice under different module names: \"package.module\" and \"namespace.package.module\"\r\nFound 1 error in 1 file (errors prevented further checking)\r\n\r\n$ pdm run mypy src --namespace-packages\r\nsrc/namespace/package/module.py: error: Source file found twice under different module names: \"package.module\" and \"namespace.package.module\"\r\nFound 1 error in 1 file (errors prevented further checking)\r\n\r\n$ pdm run mypy src --namespace-packages --explicit-package-bases\r\nsrc/namespace/package/module.py: error: Source file found twice under different module names: \"package.module\" and \"namespace.package.module\"\r\nFound 1 error in 1 file (errors prevented further checking)\r\n\r\n$ pdm run mypy src/namespace\r\nsrc/namespace/package/module.py: error: Source file found twice under different module names: \"package.module\" and \"namespace.package.module\"\r\nFound 1 error in 1 file (errors prevented further checking)\r\n\r\n$ pdm run mypy src/namespace --namespace-packages\r\nsrc/namespace/package/module.py: error: Source file found twice under different module names: \"package.module\" and \"namespace.package.module\"\r\nFound 1 error in 1 file (errors prevented further checking)\r\n\r\n$ pdm run mypy src/namespace --namespace-packages --explicit-package-bases\r\nsrc/namespace/package/module.py: error: Source file found twice under different module names: \"package.module\" and \"namespace.package.module\"\r\nFound 1 error in 1 file (errors prevented further checking)\r\n```\r\n\r\n**To Reproduce**\r\n\r\nCreate a namespace package and try to run mypy on it. I'll try to give an actual reproduction example tomorrow.\r\n\r\n**Expected Behavior**\r\n\r\nNo \"found twice\" error.\r\n\r\n**Actual Behavior**\r\n\r\n\"Found twice\" error.\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.971\r\n- Mypy command-line flags:\r\n- Mypy configuration options from `mypy.ini` (and other config files):\r\n\r\n```ini\r\n[mypy]\r\nignore_missing_imports = true\r\nshow_error_codes = true\r\nwarn_unused_ignores = true\r\nwarn_unused_configs = true\r\n```\r\n\r\n- Python version used: 3.8.11\r\n- Operating system and version: Linux 3.10.0-862.6.3.el7.x86_64\r\n\r\nSeems related to:\r\n\r\n- https://github.com/python/mypy/issues/10172\r\n- https://github.com/python/mypy/issues/11234\r\n- https://github.com/python/mypy/issues/10728\r\n- (https://github.com/python/mypy/issues/12162)\r\n- (https://github.com/python/mypy/issues/9716)\r\n","author":{"url":"https://github.com/pawamoy","@type":"Person","name":"pawamoy"},"datePublished":"2022-07-20T14:59:24Z","url":"https://github.com/python/mypy/issues/13202"}
| 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:614508b6-8f34-034a-da2d-2cdb5b779e84 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D62C:182C25:BC68A4:FC7755:6B004E59 |
| html-safe-nonce | fa3e362588bf26ed8dd72af757a342b337c4bf77e0c0eb38f6c41b49940d2d4d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjJDOjE4MkMyNTpCQzY4QTQ6RkM3NzU1OjZCMDA0RTU5IiwidmlzaXRvcl9pZCI6IjQxOTc3MjkwNjY0MTUwNTAzMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e172e49b7b3b982a591fb3abab2b090c93da53d432dc25d2f4c5650c9b59c708 |
| hovercard-subject-tag | issue:1311288712 |
| 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/13202/issue_layout |
| twitter:image | https://opengraph.githubassets.com/37717f1fe092aa5d13930cb89910526de31f0cdb579699cc0d7ede93066c561e/python/mypy/issues/13202 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/37717f1fe092aa5d13930cb89910526de31f0cdb579699cc0d7ede93066c561e/python/mypy/issues/13202 |
| og:image:alt | Bug Report With mypy 0.961 I was able to scan my namespace packages without any issue. I've just upgraded today to 0.971, and I'm now getting a Source file found twice under different module names ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pawamoy |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width