-
Notifications
You must be signed in to change notification settings - Fork 3
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
Typing #4
Comments
Most of the arguments and return values are typed. Can you give an example? |
I think that the "typed" flag is needed for mypy to recognize this; i have to include an ignore comment when using these classes and mypy:
otherwise, i get errors like
|
The mypy package generates this warning if a library is missing a stub file. We don't add this file automatically and most 3rd party libraries don't either. Are you seeing other libraries in airflow that distribute the file? |
We use mypy with most of Airflow without issue; you shouldnt need to add a stub file since you are actually typing everything, you just need to add a "py.typed marker" at your package root. Per https://typing.readthedocs.io/en/latest/spec/distributing.html#packaging-typed-libraries: |
Any chance this library could be typed for use with mypy?
The text was updated successfully, but these errors were encountered: