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

fix Optional typing hint for SerializerMethodField #428

Merged
merged 1 commit into from
Sep 29, 2019

Conversation

etene
Copy link
Contributor

@etene etene commented Aug 1, 2019

Hello,

As reported in #426, commit 69b628a broke type hinting for SerializerMethodField return values.
Here is a fix`that reverts two lines that I believe should not have been removed, and adds a test to ensure it won't break again.

I only tested with 3.7 on my machine, I hope it doesn't break anything for other Python versions.

@etene
Copy link
Contributor Author

etene commented Aug 1, 2019

The test breaks Python 2.7 compatibility, I'll try to fix it.

@pahaz
Copy link
Contributor

pahaz commented Sep 29, 2019

is it going to be merged? I have the same issue

@axnsan12
Copy link
Owner

Seems good, thanks!

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

Successfully merging this pull request may close these issues.

4 participants