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

callback: guard against invalid values #441

Merged
merged 1 commit into from
Dec 23, 2023
Merged

Conversation

skshetry
Copy link
Contributor

@skshetry skshetry commented Dec 13, 2023

See Azure/azure-sdk-for-python#11419 (comment) on how to get progress information.
Also related: #275 (comment) and iterative/dvc#7704.

Invalid values should not be passed to callbacks.

cc @efiop

@skshetry skshetry force-pushed the guard-callback branch 2 times, most recently from de5fc61 to 14b1c10 Compare December 15, 2023 04:10
Comment on lines 15 to 16
with:
python-version: 3.11
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without this, it'll use Python 3.12. versioneer.py file needs to be updated for that to work with 3.12.

Copy link
Member

Choose a reason for hiding this comment

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

@skshetry Dropped versioneer, please rebase and you will be able to safely remove this.

@skshetry
Copy link
Contributor Author

skshetry commented Dec 15, 2023

Tests are failing, but seems unrelated. @efiop, could you please take a look at the PR?

if not sent_total:
if current is None:
return
if not sent_total and total is not None:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

sent_total is not even being used here.

Should probably be set inside to True, but 🤷🏽.

@efiop
Copy link
Member

efiop commented Dec 23, 2023

@skshetry Fixed CI, please rebase.

See Azure/azure-sdk-for-python#11419 (comment) on how to get
progress information.
Also related: fsspec#275 (comment) and iterative/dvc#7704.

Invalid values should not be passed to callbacks.
@efiop efiop merged commit f80d0af into fsspec:main Dec 23, 2023
4 checks passed
@skshetry skshetry deleted the guard-callback branch December 23, 2023 02:58
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.

None yet

2 participants