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
Discriminator value could be an integer #11425
base: 3.1.x
Are you sure you want to change the base?
Discriminator value could be an integer #11425
Conversation
The change on line 399 was introduced in a merge up: 5a40b99 🤔 |
@prohalexey Does this PR fix #11341? Does it make sense to add the unit tests which are suggested in this issue? |
Yes, please do 🙏 |
@prohalexey can you please incorporate the unit tests suggested in #11341 ? |
…discriminator with tests.
Tests have been added and the code has been changed to a more accurate version. @greg0ire pls, look |
The same as
Without casting a TypeError is raised.