-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Bug, while stubbing a third party library locally #5695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just to clarify, do you still see this problem when using mypy version from GitHub master? |
(You can install mypy from master with |
Yes
I don't think the errors mypy throws are relevant to the crash, but who knows. They appear, because I copied the .py files of the module and rename/reduce/type them into .pyi files bit by bit. PS: I had to put the |
After some thinking, it looks like this is essentially a duplicate of #4881 |
These two crashes happened, while working on stubbing
pycryptocome
. Not sure what caused them, other than the errors caught by mypy itself.I'm trying to stub the
Crypto.Hash.*
files of the library in a top level directorystubs/Crypto/Hash
. Stubs forCrypto.Cipher.*
exist already, locally as well.The crash was maybe caused by me erroneously putting a
__init__.pyi
file into thestubs
dir as well, causing it to become a package. When I removed the file, leaving the ones inCrypto
and its subdirs, it worked again.The text was updated successfully, but these errors were encountered: