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

Add support for 3.13, drop support for 3.8 #395

Merged
merged 4 commits into from
Oct 22, 2024
Merged

Conversation

mesozoic
Copy link
Collaborator

@mesozoic mesozoic commented Oct 21, 2024

Python 3.13 appears to have introduced some sort of change to how it handles classes with multiple bases, and that is causing problems with the pydantic.v1 shim that we use for backwards compatibility. See #394

In 1d225f8 I attempted refactoring one of the more complicated base classes to not use multiple inheritance, but it turns out that was a red herring. The real culprit was underscore_attrs_are_private = True, which changes pydantic's behavior in some way that causes problems on 3.13. I'm honestly still a bit puzzled why, but I am not sure I care too much. This branch fixes it.

@mesozoic mesozoic marked this pull request as ready for review October 21, 2024 21:26
@mesozoic mesozoic changed the title Python 3.13 compatibility Add support for 3.13, drop support for 3.8 Oct 21, 2024
@mesozoic mesozoic merged commit 8264744 into gtalarico:main Oct 22, 2024
7 checks passed
@mesozoic mesozoic deleted the py313 branch October 22, 2024 16:09
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.

1 participant