Title: Issue with having .pyi files in a separate folder (again) · Issue #5520 · python/mypy · GitHub
Open Graph Title: Issue with having .pyi files in a separate folder (again) · Issue #5520 · python/mypy
X Title: Issue with having .pyi files in a separate folder (again) · Issue #5520 · python/mypy
Description: This is more of a question than an issue. I'm starting on using mypy to typecheck a package in which I have stub files in a dedicated ./stubs folder. However even when I pass this path into the mypy_path option in mypy.ini these don't se...
Open Graph Description: This is more of a question than an issue. I'm starting on using mypy to typecheck a package in which I have stub files in a dedicated ./stubs folder. However even when I pass this path into the myp...
X Description: This is more of a question than an issue. I'm starting on using mypy to typecheck a package in which I have stub files in a dedicated ./stubs folder. However even when I pass this path into the...
Opengraph URL: https://github.com/python/mypy/issues/5520
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue with having .pyi files in a separate folder (again)","articleBody":"This is more of a question than an issue.\r\n\r\nI'm starting on using mypy to typecheck a package in which I have stub files in a dedicated `./stubs` folder. However even when I pass this path into the `mypy_path` option in `mypy.ini` these don't seem to be detected and I\r\n\r\nThe same issue appears to be reported here https://github.com/python/mypy/issues/4933 which includes a minimal example. Tweaking the `mypy.ini` file and making the `./stubs/mypy` folder into a package by adding `__init__.pyi` files was suggested as a solution. I forked the package and implemented this suggestion (see https://github.com/MarkCBell/mypyx) however running `mypy tests/test-main.py` I still see the same error messages:\r\n\r\n```\r\nmypy/main.py:1: error: Function is missing a type annotation\r\nmypy/main.py:5: error: Function is missing a type annotation\r\nmypy/main.py:9: error: Function is missing a type annotation\r\n```\r\n\r\nAs before, if I move `./stubs/mypy/main.pyi` to `./mypy/` then these errors go away.\r\n\r\nI am using mypy 0.620 installed under Python 3.6.5 by pip 18.0\r\n\r\nCan someone please help me in knowing where am I exactly going wrong?\r\n","author":{"url":"https://github.com/MarkCBell","@type":"Person","name":"MarkCBell"},"datePublished":"2018-08-22T07:09:05Z","url":"https://github.com/python/mypy/issues/5520"}
| 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:eceec524-35bc-5281-1672-6fcd21ebdbb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9CC0:2DCAE8:24BD7C8:321E4D6:6B00382E |
| html-safe-nonce | 9ff3b34d16e5f7f785b950e2bb6fa9896861a1a60c0d4da36249d160fd93800e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Q0MwOjJEQ0FFODoyNEJEN0M4OjMyMUU0RDY6NkIwMDM4MkUiLCJ2aXNpdG9yX2lkIjoiMjI4ODcwOTE0NTIxOTU3NzkwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fe6600882705efa8f845bc7b1a07bee51617e60b610f73efef76fac0baa58b1c |
| hovercard-subject-tag | issue:352828329 |
| 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/5520/issue_layout |
| twitter:image | https://opengraph.githubassets.com/01876bbc111b20e35f0a444b4105c3f636d522d485db91b027eb55f0e65a590a/python/mypy/issues/5520 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/01876bbc111b20e35f0a444b4105c3f636d522d485db91b027eb55f0e65a590a/python/mypy/issues/5520 |
| og:image:alt | This is more of a question than an issue. I'm starting on using mypy to typecheck a package in which I have stub files in a dedicated ./stubs folder. However even when I pass this path into the myp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MarkCBell |
| 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