Skip to content

Type hints from annotations are not correct since python 3.10 #93

Description

@smarie

Correctly reading annotations change a lot in 3.10. The intent is to simplify things but our code does need to be adapted.
the best practice is now to use inspect.get_annotations(eval_str=True) to get the de-stringified annotations.
Still things need to be checked concerning inheritance behaviours.

https://docs.python.org/3/howto/annotations.html

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions