Skip to content

Commit 7f8d4b5

Browse files
ShaharNavehproost
authored andcommitted
STY: fstrings, repr (pandas-dev#30093)
1 parent 1cd62b8 commit 7f8d4b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/html.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _get_skiprows(skiprows):
103103
elif skiprows is None:
104104
return 0
105105
raise TypeError(
106-
"%r is not a valid type for skipping rows" % type(skiprows).__name__
106+
f"'{type(skiprows).__name__}' is not a valid type for skipping rows"
107107
)
108108

109109

@@ -133,7 +133,7 @@ def _read(obj):
133133
except (TypeError, ValueError):
134134
pass
135135
else:
136-
raise TypeError("Cannot read object of type %r" % type(obj).__name__)
136+
raise TypeError(f"Cannot read object of type '{type(obj).__name__}'")
137137
return text
138138

139139

0 commit comments

Comments
 (0)