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

serialize_type does not handle typing.Any correctly #8719

Open
1 task done
LastRemote opened this issue Jan 15, 2025 · 0 comments
Open
1 task done

serialize_type does not handle typing.Any correctly #8719

LastRemote opened this issue Jan 15, 2025 · 0 comments
Labels
P2 Medium priority, add to the next sprint if no P1 available

Comments

@LastRemote
Copy link
Contributor

LastRemote commented Jan 15, 2025

Describe the bug
serialize_type(typing.Any) returns "typing._SpecialForm"

Error message
None

Expected behavior
serialize_type(typing.Any) should return "typing.Any"

Additional context
get_origin(Any) returns None so it is not recognizing Any as a typing object. I don't know what's the best way to do this tbh.
Image

To Reproduce
Run serialize_type(typing.Any)

FAQ Check

System:
Irrelevent

@julian-risch julian-risch added the P2 Medium priority, add to the next sprint if no P1 available label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Medium priority, add to the next sprint if no P1 available
Projects
None yet
Development

No branches or pull requests

2 participants