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

_field_types of typing.NamedTuple has been deprecated and will be removed in Python 3.9 #95

Closed
tirkarthi opened this issue Apr 26, 2020 · 1 comment · Fixed by #96 or #101
Closed
Labels
compatibility in progress This issue is worked on

Comments

@tirkarthi
Copy link
Contributor

hint = getattr(cls, '_field_types', {}).get(field_name)

https://docs.python.org/3/whatsnew/3.8.html#deprecated

The typing.NamedTuple class has deprecated the _field_types attribute in favor of the 
__annotations__ attribute which has the same information. 
(Contributed by Raymond Hettinger in bpo-36320.)
@ramonhagenaars
Copy link
Owner

Hi @tirkarthi. I see you also created a pull request for this: thank you! I'll address it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility in progress This issue is worked on
Projects
None yet
2 participants