Skip to content

Conversation

@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Apr 24, 2024

Now, such classes will no longer require changes in Python 3.13 in the normal case.
The test suite for robotframework passes with no DeprecationWarnings under this PR.

I also added a new DeprecationWarning for the case where _field_types exists
but is incomplete, since that seems likely to indicate a user mistake.

Closes #117486


📚 Documentation preview 📚: https://cpython-previews--118212.org.readthedocs.build/

Now, such classes will no longer require changes in Python 3.13 in the normal case.
The test suite for robotframework passes with no DeprecationWarnings under this PR.

I also added a new DeprecationWarning for the case where `_field_types` exists
but is incomplete, since that seems likely to indicate a user mistake.
@JelleZijlstra JelleZijlstra requested a review from encukou April 24, 2024 04:28
@JelleZijlstra JelleZijlstra added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 24, 2024
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @JelleZijlstra for commit ff62a21 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Apr 24, 2024
@JelleZijlstra
Copy link
Member Author

I'm planning to merge this today so we can be in a better place for beta 1.

@JelleZijlstra JelleZijlstra merged commit e042219 into python:main May 6, 2024
@JelleZijlstra JelleZijlstra deleted the ast2 branch May 6, 2024 22:57
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
…thon#118212)

Now, such classes will no longer require changes in Python 3.13 in the normal case.
The test suite for robotframework passes with no DeprecationWarnings under this PR.

I also added a new DeprecationWarning for the case where `_field_types` exists
but is incomplete, since that seems likely to indicate a user mistake.
@JelleZijlstra JelleZijlstra restored the ast2 branch September 10, 2024 23:37
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.

ast: Improve behavior for user-defined classes

2 participants