Skip to content

Python 3.14 breaks unit tests #3013

Description

@JohnVillalovos

See https://docs.python.org/3.14/whatsnew/3.14.html on how to resolve this.

Due to how Python 3.14 is doing annotations and in particular being able to inspect __annotations__ we will need to make changes to fix it.

The one line which seems to be causing the failures is:

for attr, annotation in sorted(self.__annotations__.items()):

Example error:

AttributeError: 'FakeParent' object has no attribute '__annotations__'. Did you mean: '__annotate__'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions