Skip to content

Conversation

@copybara-service
Copy link

Copybara import of the project:

--
6622efc by vfdev-5 vfdev.5@gmail.com:

Support for python 3.14

Adapted the way to access __annotations__ object.
Flax linen code relies on cls.__dict__["__annotations__"], but
in Python 3.14+ cls.__dict__ does not contain __annotation__ key anymore.

Fixes #5027

@google-cla
Copy link

google-cla bot commented Oct 21, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

--
6622efc by vfdev-5 <vfdev.5@gmail.com>:

Support for python 3.14

Adapted the way to access `__annotations__` object.
Flax linen code relies on `cls.__dict__["__annotations__"]`, but
in Python 3.14+ `cls.__dict__` does not contain `__annotation__` key anymore.

Fixes #5027

PiperOrigin-RevId: 822202664
@copybara-service copybara-service bot merged commit 5a2da6d into main Oct 21, 2025
@copybara-service copybara-service bot deleted the test_822194143 branch October 21, 2025 18:24
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.

Python 3.14 compatibility issue

1 participant