Skip to content
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 Azure typing issues #191

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Fix Azure typing issues #191

merged 1 commit into from
Aug 19, 2024

Conversation

jadkik
Copy link
Contributor

@jadkik jadkik commented Aug 15, 2024

About this change - What it does

The latest version of the azure-storage-blob package seems to have introduced some typing issues (most likely via Azure/azure-sdk-for-python@cb47de5).

This PR solves this.

Resolves: #xxxxx

Why this way

The version of azure-storage-blob is explicitly un-pinned in the pyproject.toml file, so it seems like a better option to address the typing issue rather than pin the package to an older version.

I opted for a warning log line instead of an assertion as that would at least provide some insight into what is happening. Theoretically, we might get in this situation even though the docs say we won't.

@jadkik jadkik marked this pull request as ready for review August 15, 2024 09:57
@jadkik jadkik self-assigned this Aug 15, 2024
@jadkik jadkik requested a review from a team August 15, 2024 09:57
# The description of CopyProperties tells us copy_id should not be None unless status is also None
# The type checker cannot know this, but we still log a warning if this ever happens
self.log.warning(
"Pending copy operation from %r to %r was missing a copy_id, will not be aborted after timeout",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "will not be aborted after timeout" -> "thus cannot be aborted"

@Prime541 Prime541 merged commit e237dd3 into main Aug 19, 2024
9 checks passed
@Prime541 Prime541 deleted the jad-elkik-resolve-typing-issue branch August 19, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants