-
Notifications
You must be signed in to change notification settings - Fork 254
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
Add types to variables/functions in project and py.typed file #827
Comments
Hi @qarmin Thank you for getting in touch. Do you want to contribute to |
Hello, I´d like to work on this issue. |
I added your name as assignee. Let us know if you have any question. |
Thank you very much @andersonhc . I am working on this issue currently. Did I miss anything? Greeting, David |
At start I suggest to only add mypy workflow + add mypy.ini that will suppress all errors. |
There is even automatic way to add some types into code(but still types needs to be manually verified).
But probably something like this should generate some types
|
You may want to check the version of OpenSSL that you have installed: https://community.snowflake.com/s/article/Python-Connector-fails-to-connect-with-LibraryNotFoundError-Error-detecting-the-version-of-libcrypto |
This link was great help as I was facing the same issue. My resolution from this was downgrading oscrypto dependency in my venv to get the tests to run. |
When using Pyright, I found that a lot of errors is visible, because Pyright cannot properly recognize type of variable.
Adding basic types, should help such tools to provide better results for users
simple
mypy fpdf
(1.4.1) command shows such errors(most should be quite easy to fix)at the end, mypy should be added to CI to force style
The text was updated successfully, but these errors were encountered: