Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
smarie opened this issue May 14, 2024 · 0 comments
Open

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

smarie opened this issue May 14, 2024 · 0 comments

Comments

@smarie
Copy link
Owner

smarie commented May 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant