Skip to content

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

@smarie

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

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