Skip to content

Commit d0bb009

Browse files
AncientRicklesjbrockmendel
authored andcommitted
Fixing format string in pandas/tests/extension/list/array.py (#30412)
1 parent a2bbdb5 commit d0bb009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/extension/list/array.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def construct_from_string(cls, string):
3636
if string == cls.name:
3737
return cls()
3838
else:
39-
raise TypeError("Cannot construct a '{}' from '{}'".format(cls, string))
39+
raise TypeError(f"Cannot construct a '{cls}' from '{string}'")
4040

4141

4242
class ListArray(ExtensionArray):

0 commit comments

Comments
 (0)