-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
REF: cython cleanup, typing, optimizations #23456
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #23456 +/- ##
=======================================
Coverage 92.22% 92.22%
=======================================
Files 161 161
Lines 51191 51191
=======================================
Hits 47210 47210
Misses 3981 3981
Continue to review full report at Codecov.
|
@@ -298,16 +300,15 @@ cdef class _Timestamp(datetime): | |||
elif op == Py_GE: | |||
return dtval >= other | |||
|
|||
cdef int _assert_tzawareness_compat(_Timestamp self, | |||
object other) except -1: | |||
cdef _assert_tzawareness_compat(_Timestamp self, datetime other): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void?
@@ -679,7 +678,7 @@ cdef class StringHashTable(HashTable): | |||
for i in range(n): | |||
val = values[i] | |||
|
|||
if PyUnicode_Check(val) or PyString_Check(val): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should note somewhere how we prefer isinstance checks for strings but use the cpython methods for datetimes.
thanks |
Easy parts split off from #23368, #23382.