Skip to content

Refactor when minimum python == 3.14 #98

Description

@bckohan

Python 3.14 lazily loads type annotations. We force load them during __new__ in the metaclass - but they are unavailable earlier on between __prepare__ and __new__. Prior versions create the properties from annotations before __new__ - version 3.14 and later lazily load the properties in __new__. Supporting python versions from 3.8 <-> 3.14 requires significant version specific code. This issue is a reminder to do a general refactor once 3.14 is the minimal supported version of python. At this time the legacy interface should also be dropped and a version 3.0 release should be issued.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions