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

importing annotations from __future__ changes type #21

Open
purarue opened this issue Jan 6, 2024 · 2 comments
Open

importing annotations from __future__ changes type #21

purarue opened this issue Jan 6, 2024 · 2 comments

Comments

@purarue
Copy link
Owner

purarue commented Jan 6, 2024

seems to breaks the typecheck for enum and causes a TypeError

@purarue
Copy link
Owner Author

purarue commented Jan 21, 2024

seems that this changes a bunch of the types to typing.ForwardRefs which are not introspectable as easily.

Would need to ._evaulate(globals(), locals(), frozenset()), am not sure how that works when not in the file context itself and when Im resolving the type in the autotui.serialize file

@purarue
Copy link
Owner Author

purarue commented Jan 29, 2024

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