-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Fix mypy errors in airflow utils #19914
Conversation
d5b9c9c
to
f00879b
Compare
Should be much nicer now :) |
114d287
to
2a13765
Compare
56e0625
to
5b193a8
Compare
5b193a8
to
865d4b8
Compare
All fixed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the piecemeal reviews -- I have actually looked at the full thing this time, see my two comments
No problem. I will take look tomorrow. |
2c756e5
to
302078f
Compare
All fixed :) |
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
302078f
to
104aa11
Compare
104aa11
to
8acb0f9
Compare
@ashb - FYI. I actually changed the "StreamLogWriter" approach - rather than extending from IO Abstract class, I extend from IOBase which has implementations for pretty much all of the abstract methods of IO. Not only cleaner but it will work for Python3.6 as well (Apparently Python3.6 had some non-implemented abstract methods in IO which caused our tests fail with "Can't instantiate abstract class … with abstract methods” |
Actually the interesting story was that |
Nice one. |
Part of #19891
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.