-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
Accept objects that support __int__ for query vars #1139
Conversation
Previously we would only accept subclasses of int, we will now accept any object that implements __int__ and has the correct protocol.
…accept_supports_int_float
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1139 +/- ##
=======================================
Coverage 95.41% 95.42%
=======================================
Files 30 30
Lines 4756 4761 +5
Branches 422 423 +1
=======================================
+ Hits 4538 4543 +5
Misses 192 192
Partials 26 26
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This caused a performance regression, but we didn't know it at the time since we were not monitoring performance Fixed in #1259 |
What do these changes do?
Previously we would only accept subclasses of int, we will now accept any object that implements
__int__
and has the correct protocol.Are there changes in behavior for the user?
np.int16
will now be acceptedRelated issue number
closes #945