Type-checking in modules with stubs #1878
asleep-cult
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
This sounds pretty similar to microsoft/pylance-release#1238. I do think that there's a case to be made for improving the development experience for stubs next to py files, but what is your rationale for not inlining your types? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When editing a module with stubs, the type checker does not look for type information in said stubs. This means that developers must disable type checking for the file or disable type checking entirely every time they want to switch between editing their stubs and their actual module (this is pretty tedious when you're using vscode). This also means that all the benefits of typings are lost when editing the module. I propose one of the following:
.py
and.pyi
files.py
files when the corresponding.pyi
file is presentBeta Was this translation helpful? Give feedback.
All reactions