Skip to content

Commit 21b7daf

Browse files
authored
CI: py38 builds (#45429)
1 parent 388ecf3 commit 21b7daf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/arrays/masked.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ def _validate_setitem_value(self, value):
257257
return value
258258
# TODO: unsigned checks
259259

260-
raise TypeError(f"Invalid value '{value}' for dtype {self.dtype}")
260+
# Note: without the "str" here, the f-string rendering raises in
261+
# py38 builds.
262+
raise TypeError(f"Invalid value '{str(value)}' for dtype {self.dtype}")
261263

262264
def __setitem__(self, key, value) -> None:
263265
key = check_array_indexer(self, key)

0 commit comments

Comments
 (0)