-
Notifications
You must be signed in to change notification settings - Fork 270
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
What type int must I use? #199
Comments
i overlooked that you used https://github.com/tfranzel/drf-spectacular/blob/master/tests/test_extend_schema.py#L55 but the type hints needed work anyway. with this fix, type hint resolution covers a lot more cases now including dict, list, tuple, and so on. |
@tonioo can you confirm the fix solves your issue? |
@tfranzel I confirm it works now, the type hint is correctly recognized! |
I have a field represented by a
SerializerMethodField
which returns a list of string. I have tried different things to indicate the type (using the @extend_schema and a type hint) but I always receive the same warning:Any help appreciated :)
The text was updated successfully, but these errors were encountered: