From afd5c188a9dd0418d02de446d57c821c92fd6002 Mon Sep 17 00:00:00 2001 From: Simon Hawkins Date: Mon, 12 Jul 2021 14:03:45 +0100 Subject: [PATCH] TYP/CLN: update setup.cfg (#42500) --- pandas/io/formats/string.py | 12 ++---------- setup.cfg | 3 --- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/pandas/io/formats/string.py b/pandas/io/formats/string.py index 2610b7777207f..90a4800c805b6 100644 --- a/pandas/io/formats/string.py +++ b/pandas/io/formats/string.py @@ -119,13 +119,7 @@ def _join_multiline(self, strcols_input: Iterable[list[str]]) -> str: if self.fmt.index: idx = strcols.pop(0) - # error: Argument 1 to "__call__" of "_NumberOp" has incompatible type - # "None"; expected "Union[int, float, complex, number, bool_]" - # error: Incompatible types in assignment (expression has type "number", - # variable has type "Optional[int]") - lwidth -= ( # type: ignore[assignment,arg-type] - np.array([self.adj.len(x) for x in idx]).max() + adjoin_width - ) + lwidth -= np.array([self.adj.len(x) for x in idx]).max() + adjoin_width col_widths = [ np.array([self.adj.len(x) for x in col]).max() if len(col) > 0 else 0 @@ -133,9 +127,7 @@ def _join_multiline(self, strcols_input: Iterable[list[str]]) -> str: ] assert lwidth is not None - # error: Argument 1 to "_binify" has incompatible type "List[object]"; expected - # "List[int]" - col_bins = _binify(col_widths, lwidth) # type: ignore[arg-type] + col_bins = _binify(col_widths, lwidth) nbins = len(col_bins) if self.fmt.is_truncated_vertically: diff --git a/setup.cfg b/setup.cfg index 9df220280c59f..566248156cdc8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -225,9 +225,6 @@ check_untyped_defs = False [mypy-pandas.io.clipboard] check_untyped_defs = False -[mypy-pandas.io.formats.string] -ignore_errors = True - [mypy-pandas.tests.apply.test_series_apply] ignore_errors = True