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

CLN: F-string formatting in pandas/_libs/*.pyx #29527

Merged
merged 16 commits into from
Nov 11, 2019
Prev Previous commit
Next Next commit
Finished fixing errors in previous PR
  • Loading branch information
MomIsBestFriend committed Nov 10, 2019
commit 5fbd79557cc9213e581cd1e2361a178bdba5082f
2 changes: 1 addition & 1 deletion pandas/_libs/hashing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def hash_object_array(object[:] arr, object key, object encoding='utf8'):
kb = <uint8_t *>k
if len(k) != 16:
raise ValueError(f"key should be a 16-byte string encoded, "
f"got {k} (len {len(k)})")
f"got {k} (len {len(k)})")

n = len(arr)

Expand Down
2 changes: 1 addition & 1 deletion pandas/_libs/interval.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def intervals_to_interval_bounds(ndarray intervals,

if not isinstance(interval, Interval):
raise TypeError(f"type {type(interval)} with value "
f"{interval} is not an interval")
f"{interval} is not an interval")

left[i] = interval.left
right[i] = interval.right
Expand Down
4 changes: 2 additions & 2 deletions pandas/_libs/lib.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ cdef class Validator:

cdef bint is_value_typed(self, object value) except -1:
raise NotImplementedError(f'{type(self).__name__} child class '
f'must define is_value_typed')
f'must define is_value_typed')

cdef bint is_valid_null(self, object value) except -1:
return value is None or util.is_nan(value)
Expand Down Expand Up @@ -1634,7 +1634,7 @@ cdef class TemporalValidator(Validator):

cdef bint is_valid_null(self, object value) except -1:
raise NotImplementedError(f'{type(self).__name__} child class '
f'must define is_valid_null')
f'must define is_valid_null')

cdef inline bint is_valid_skipna(self, object value) except -1:
cdef:
Expand Down