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 with version 4.6.0 with pydantic #179

Closed
wanting-lin opened this issue May 23, 2023 · 5 comments

Comments

@wanting-lin
Copy link

I have a package using pydantic for type validation. It was working fine since March, but I got below error (see screenshot) and found that there's a new release of typing_extensions 4.6.0.
I am not sure if it is the issue of typing_extensions, but I don't get below error with version 4.5.0.
My python version is 3.10 and pydantic version is 1.10.7.
image

@AlexWaygood
Copy link
Member

According to pydantic/pydantic#5821 (comment), it looks like this is probably a bug in pydantic rather than typing_extensions.

@sanderr
Copy link

sanderr commented May 23, 2023

Very similar issue at typing_inspect: ilevkivskyi/typing_inspect#100.

@AlexWaygood
Copy link
Member

pydantic/pydantic#5826 is the fix for this FYI.

jmsanders added a commit to dagster-io/dagster that referenced this issue May 23, 2023
The latest release of typing_extensions breaks great expectations.

Great expectations is already pinned but hasn't release a new version
yet:

great-expectations/great_expectations#7974 (comment)

Pydantic and typing extensions are aware of and working on fixes as well:

python/typing_extensions#179
pydantic/pydantic#5821

Until all those pins/fixes land, let's introduce our own pins to keep
our builds passing.
jmsanders added a commit to dagster-io/dagster that referenced this issue May 23, 2023
The latest release of typing_extensions breaks great expectations.

Great expectations is already pinned but hasn't release a new version
yet:


great-expectations/great_expectations#7974 (comment)

Pydantic and typing extensions are aware of and working on fixes as
well:

python/typing_extensions#179
pydantic/pydantic#5821

Until all those pins/fixes land, let's introduce our own pins to keep
our builds passing.
@AlexWaygood
Copy link
Member

Fixed by pydantic/pydantic#5826

@hauntsaninja hauntsaninja pinned this issue May 23, 2023
@hauntsaninja hauntsaninja changed the title TypeError: issubclass() arg 1 must be a class with version 4.6.0 TypeError: issubclass() arg 1 must be a class with version 4.6.0 with pydantic May 23, 2023
@AlexWaygood
Copy link
Member

pydantic v1.10.8 can now be installed from PyPI, and contains the fix.

odette-elementl pushed a commit to dagster-io/dagster that referenced this issue Jun 1, 2023
The latest release of typing_extensions breaks great expectations.

Great expectations is already pinned but hasn't release a new version
yet:


great-expectations/great_expectations#7974 (comment)

Pydantic and typing extensions are aware of and working on fixes as
well:

python/typing_extensions#179
pydantic/pydantic#5821

Until all those pins/fixes land, let's introduce our own pins to keep
our builds passing.
@AlexWaygood AlexWaygood unpinned this issue Feb 22, 2024
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

3 participants