Uh oh!
There was an error while loading. Please reload this page.
Fix new MyPy errors in main - #22884
Conversation
potiuk
commented
Apr 10, 2022
BTW. A number of those errors (except the big google Retry) are because |
Those MyPe errors are side effect of some new dependencies.
6e627e8 to
81c31c9CompareThe 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. |
malthe
commented
Apr 10, 2022
Why are If someone wants a deterministic order, then can use a list or tuple as the value. |
potiuk
commented
Apr 10, 2022
I just fixed consistency. I think there is no particular reason. I do not think it matters as long as it consistent. You can make a PR to change it ti Iterable -but it has to be consistent in all providers and code. |
potiuk
commented
Apr 10, 2022
It also could be that somewhere in the code len() is used and that would make it not good candidate for Iterable. |
malthe
commented
Apr 10, 2022
@potiuk from the description of those attributes, I don't see why any code would do |
potiuk
commented
Apr 10, 2022
Yeah. Could be :) . I do not see any problem with changing it to Iterable if it passes all the tests. I |
Those MyPe errors are side effect of some new dependencies.
^ 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.