Skip to content

Commit afd5c18

Browse files
TYP/CLN: update setup.cfg (#42500)
1 parent 5831b06 commit afd5c18

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

pandas/io/formats/string.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -119,23 +119,15 @@ def _join_multiline(self, strcols_input: Iterable[list[str]]) -> str:
119119

120120
if self.fmt.index:
121121
idx = strcols.pop(0)
122-
# error: Argument 1 to "__call__" of "_NumberOp" has incompatible type
123-
# "None"; expected "Union[int, float, complex, number, bool_]"
124-
# error: Incompatible types in assignment (expression has type "number",
125-
# variable has type "Optional[int]")
126-
lwidth -= ( # type: ignore[assignment,arg-type]
127-
np.array([self.adj.len(x) for x in idx]).max() + adjoin_width
128-
)
122+
lwidth -= np.array([self.adj.len(x) for x in idx]).max() + adjoin_width
129123

130124
col_widths = [
131125
np.array([self.adj.len(x) for x in col]).max() if len(col) > 0 else 0
132126
for col in strcols
133127
]
134128

135129
assert lwidth is not None
136-
# error: Argument 1 to "_binify" has incompatible type "List[object]"; expected
137-
# "List[int]"
138-
col_bins = _binify(col_widths, lwidth) # type: ignore[arg-type]
130+
col_bins = _binify(col_widths, lwidth)
139131
nbins = len(col_bins)
140132

141133
if self.fmt.is_truncated_vertically:

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,6 @@ check_untyped_defs = False
225225
[mypy-pandas.io.clipboard]
226226
check_untyped_defs = False
227227

228-
[mypy-pandas.io.formats.string]
229-
ignore_errors = True
230-
231228
[mypy-pandas.tests.apply.test_series_apply]
232229
ignore_errors = True
233230

0 commit comments

Comments
 (0)