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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_origin(Dict) returns None in python 3.9 #64

Closed
yukinarit opened this issue Nov 11, 2020 · 1 comment
Closed

get_origin(Dict) returns None in python 3.9 #64

yukinarit opened this issue Nov 11, 2020 · 1 comment

Comments

@yukinarit
Copy link

Hi! Thank you for the great package!

get_origin(Dict) returns None only in Python 3.9. Is this an expected behaviour? 馃

Python 3.9.0 (default, Nov 11 2020, 21:02:15)
[Clang 12.0.0 (clang-1200.0.32.21)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from typing_inspect import get_origin
>>> from typing import Dict
>>> get_origin(Dict)
>>> print(get_origin(Dict))
None
>>> print(get_origin(Dict[int, str]))
<class 'dict'>
@ilevkivskyi
Copy link
Owner

I think this should be already fixed by #69

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

2 participants