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: issubclass() arg 1 must be a class #1

Open
Gaming722 opened this issue Nov 6, 2023 · 0 comments
Open

TypeError: issubclass() arg 1 must be a class #1

Gaming722 opened this issue Nov 6, 2023 · 0 comments

Comments

@Gaming722
Copy link

DATASET = Multi30k()

If someone runs the above code and gets the following error:

File "/home/user_name/anaconda3/envs/transformer_pytorch/lib/python3.9/typing.py", line 852, in __subclasscheck__
    return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class

Then ensuring that the typing_extension is version 4.5.0 may fix this bug:

pip install typing_extensions==4.5.0
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
@Gaming722 and others