Skip to content

Commit

Permalink
chore(python): bump mypy from 1.8.0 to 1.9.0 in /py-polars (#15360)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Stijn de Gooijer <[email protected]>
  • Loading branch information
dependabot[bot] and stinodego authored Mar 28, 2024
1 parent 0c66e3a commit f546560
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions py-polars/polars/_utils/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,16 @@ def _callback(self, obj: PyDataFrame | Exception) -> None:
if isinstance(obj, Exception):
self.loop.call_soon_threadsafe(self.result.set_exception, obj)
else:
self.loop.call_soon_threadsafe(self.result.set_result, wrap_df(obj))
self.loop.call_soon_threadsafe(
self.result.set_result, # type: ignore[arg-type]
wrap_df(obj),
)

def _callback_all(self, obj: list[PyDataFrame] | Exception) -> None:
if isinstance(obj, Exception):
self.loop.call_soon_threadsafe(self.result.set_exception, obj)
else:
self.loop.call_soon_threadsafe(
self.result.set_result,
self.result.set_result, # type: ignore[arg-type]
[wrap_df(pydf) for pydf in obj],
)
4 changes: 2 additions & 2 deletions py-polars/polars/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -9724,8 +9724,8 @@ def rows_by_key(
if not index_idxs:
msg = f"no columns found for key: {key_tuple!r}"
raise ValueError(msg)
get_data = itemgetter(*data_idxs) # type: ignore[assignment]
get_key = itemgetter(*index_idxs) # type: ignore[assignment]
get_data = itemgetter(*data_idxs) # type: ignore[arg-type]
get_key = itemgetter(*index_idxs) # type: ignore[arg-type]

# if unique, we expect to write just one entry per key; otherwise, we're
# returning a list of rows for each key, so append into a defaultdict.
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/datatypes/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def __new__(
if not isinstance(it, (DataType, DataTypeClass)):
msg = f"DataTypeGroup items must be dtypes; found {type(it).__name__!r}"
raise TypeError(msg)
dtype_group = super().__new__(cls, items) # type: ignore[arg-type]
dtype_group = super().__new__(cls, items)
dtype_group._match_base_type = match_base_type
return dtype_group

Expand Down
2 changes: 1 addition & 1 deletion py-polars/requirements-lint.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mypy==1.8.0
mypy==1.9.0
ruff==0.3.0
typos==1.18.2

0 comments on commit f546560

Please sign in to comment.