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 NoneType type as it requires py>=3.10 #35843

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Fix NoneType type as it requires py>=3.10 #35843

merged 1 commit into from
Jan 22, 2025

Conversation

SunMarc
Copy link
Member

@SunMarc SunMarc commented Jan 22, 2025

What does this PR do?

This PR fixes an issue for older version of python (3.9) wrt NoneType. The types.NoneType was introduced in Python 3.10. So, we need to use type(None) instead.
We have this issue in accelerate CI

@Rocketknight1
Copy link
Member

cc @aymeric-roucher, merging this one instead of #35829

@Rocketknight1 Rocketknight1 merged commit 2c3a44f into main Jan 22, 2025
26 checks passed
@Rocketknight1 Rocketknight1 deleted the fix-type branch January 22, 2025 15:56
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.

2 participants