-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Update azure-storage-blob version #25426
Conversation
Any reason versions between 12.9 and 12.13 need to be excluded? |
I'll check if I can relax the version |
mmm We have
which seems to be related to Azure/azure-sdk-for-python#24661 and will be fixed only in |
As for the second static failure it's kinda strange.
Code line:
but the types did not change between the versions: In 12.8.1 (when mypy pass) it’s the same as in 12.13.0 which mypy fails! |
The |
Yes this is what i did as it also required param in the upstream lib but I'm not sure I get why mypy behaves differently on the same function signature and typing? a mystery. |
OK delimiter is solved.
after that we should get a green build |
Merged . Rebasing this one on top :) |
Just one static-check left! |
Yes. This is the one that we must wait to 12.14.0 Once 12.14.0 I'll modify the PR to use that version as minimum |
Still failing with
Lets see if bb1c545 resolves it |
I think Mypy is too smart and can tell that content = stream.readall()
assert isinstance(content, bytes)
fileblob.write(content) |
So it solved the static issue but created problems for the unit tests. |
Maybe if the assertion was under |
I think not really - the idea is to make it consistent, I think :). It's going to change when the fixed version of liubrary is out, so it will change then and someone might rely on it being bytes. |
Yeah let’s wait for upstream. |
78c1258
to
2d51438
Compare
Testing with
Looks like Azure/azure-sdk-for-python@8c24354 changed also type hints for another function. |
^ I'm by no means a mypy expert, but the typing for |
2570be8
to
db0c121
Compare
New release of azure-storage-blob is expected next week: |
We restricted version in apache#18443 due to error in static checks apache#17068 (comment) Tests pass locally with the updated version
azure-storage-blob 12.14.0 was released so this PR should be ready |
This change broke the wasb log task handler. The |
I think you shoudl open an issue (or better PR :) for that. |
* Make arguments 'offset' and 'length' not required * Disable implicit optional for azure-storage (mypy)
We restricted version in #18443 due to error in static checks #17068 (comment)
Tests pass locally with the updated version
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an 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 a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in newsfragments.