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

TypeError: Subscripted generics cannot be used with class and instance checks #3348

Open
kbaltakys opened this issue May 31, 2024 · 2 comments

Comments

@kbaltakys
Copy link

isinstance(device_train_microbatch_size, Union[int, float])
should be
isinstance(device_train_microbatch_size, (int, float))
on line

elif isinstance(device_train_microbatch_size, Union[int, float]):

@mvpatel2000
Copy link
Contributor

Good point! Would you mind opening a PR and tagging me for review?

@mvpatel2000
Copy link
Contributor

Quick fix just did it. Thanks for flagging!

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

No branches or pull requests

2 participants