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

typed_dict_keys fails to return data on 3.10 #95

Open
pschanely opened this issue Dec 11, 2022 · 1 comment
Open

typed_dict_keys fails to return data on 3.10 #95

pschanely opened this issue Dec 11, 2022 · 1 comment
Labels

Comments

@pschanely
Copy link
Contributor

I presume this issue has something to do with typing_extensions, but not exactly sure how.

$ pip install typing-inspect==0.8.0
$ python
Python 3.10.8 (main, Dec 11 2022, 10:51:27) [Clang 11.0.3 (clang-1103.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from typing_inspect import typed_dict_keys
>>> from typing import TypedDict
>>> class A(TypedDict):
...   x: bool
... 
>>> typed_dict_keys(A)
>>> 

On Python 3.9 and 3.11, I get the expected return value of {'x': <class 'bool'>}

@ilevkivskyi
Copy link
Owner

Yeah, this is clearly a bug. I may not have time to look at it soon however, but PRs are welcome!

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

No branches or pull requests

2 participants