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.
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