Skip to content

Commit 9305b3f

Browse files
committed
STY - removed unecessary repr
1 parent eed4528 commit 9305b3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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-
f"{repr(type(skiprows).__name__)} is not a valid type for skipping rows"
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(f"Cannot read object of type {repr(type(obj).__name__)}")
136+
raise TypeError(f"Cannot read object of type {(type(obj).__name__)}")
137137
return text
138138

139139

pandas/io/parsers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -913,8 +913,8 @@ def _get_options_with_defaults(self, engine):
913913
pass
914914
else:
915915
raise ValueError(
916-
f"The {repr(argname)} option is not supported with the"
917-
f" {repr(engine)} engine"
916+
f"The {argname} option is not supported with the"
917+
f" {engine} engine"
918918
)
919919
else:
920920
value = _deprecated_defaults.get(argname, default)

0 commit comments

Comments
 (0)