Update most test/lint dependencies (#15582)

This commit is contained in:
renovate[bot]
2026-04-01 17:54:51 +02:00
committed by GitHub
parent 8ffc43610f
commit 8b31f2639e
142 changed files with 310 additions and 357 deletions
+2 -2
View File
@@ -42,9 +42,9 @@ class Reference(Strict):
def __len__(self) -> int: ...
def __eq__(self, other: object) -> bool: ...
@property
def rows(self) -> Generator[Reference, None, None]: ...
def rows(self) -> Generator[Reference]: ...
@property
def cols(self) -> Generator[Reference, None, None]: ...
def cols(self) -> Generator[Reference]: ...
def pop(self): ...
@property
def sheetname(self) -> str: ...
@@ -116,7 +116,7 @@ class CommentSheet(Serialisable):
def __init__(self, authors: AuthorList, commentList=None, extLst: Unused = None) -> None: ...
def to_tree(self) -> Element: ... # type: ignore[override]
@property
def comments(self) -> Generator[tuple[str, Comment], None, None]: ...
def comments(self) -> Generator[tuple[str, Comment]]: ...
@classmethod
def from_comments(cls, comments): ...
def write_shapes(self, vml=None): ...
@@ -32,9 +32,7 @@ class Sequence(Descriptor[_ContainerT]):
container: type # internal container type, defaults to `list`
# seq must be an instance of any of the declared `seq_types`.
def __set__(self, instance: Serialisable | Strict, seq: Any) -> None: ...
def to_tree(
self, tagname: str | None, obj: Iterable[object], namespace: str | None = None
) -> Generator[Element, None, None]: ...
def to_tree(self, tagname: str | None, obj: Iterable[object], namespace: str | None = None) -> Generator[Element]: ...
# `_T` is the type of the elements in the sequence.
class UniqueSequence(Sequence[set[_T]]):
@@ -46,7 +44,7 @@ class ValueSequence(Sequence[_ContainerT]):
attribute: str
def to_tree(
self, tagname: str, obj: Iterable[object], namespace: str | None = None # type: ignore[override]
) -> Generator[Element, None, None]: ...
) -> Generator[Element]: ...
def from_tree(self, node: _HasGet[_T]) -> _T: ...
@type_check_only
@@ -68,7 +66,7 @@ class MultiSequence(Sequence[list[_T]]):
def __set__(self, instance: Serialisable | Strict, seq: tuple[_T, ...] | list[_T]) -> None: ...
def to_tree(
self, tagname: Unused, obj: Iterable[_SupportsToTree], namespace: str | None = None # type: ignore[override]
) -> Generator[Element, None, None]: ...
) -> Generator[Element]: ...
class MultiSequencePart(Alias):
expected_type: type[Incomplete]
@@ -37,5 +37,5 @@ class Manifest(Serialisable):
def to_tree(self) -> Element: ... # type: ignore[override]
def __contains__(self, content_type: str) -> bool: ...
def find(self, content_type): ...
def findall(self, content_type) -> Generator[Incomplete, None, None]: ...
def findall(self, content_type) -> Generator[Incomplete]: ...
def append(self, obj) -> None: ...
@@ -34,7 +34,7 @@ class Relationship(Serialisable):
class RelationshipList(ElementList[Relationship]):
expected_type: type[Relationship]
def find(self, content_type: str) -> Generator[Relationship, None, None]: ...
def find(self, content_type: str) -> Generator[Relationship]: ...
def get(self, key: str) -> Relationship: ...
def to_dict(self) -> dict[Incomplete, Relationship]: ...
+1 -1
View File
@@ -18,7 +18,7 @@ class WorkbookParser:
# Errors if "parse" is never called.
caches: list[PivotCache]
def parse(self) -> None: ...
def find_sheets(self) -> Generator[tuple[ChildSheet, Relationship], None, None]: ...
def find_sheets(self) -> Generator[tuple[ChildSheet, Relationship]]: ...
def assign_names(self) -> None: ...
@property
def pivot_caches(self) -> dict[int, CacheDefinition]: ...
+2 -2
View File
@@ -20,8 +20,8 @@ def absolute_coordinate(coord_string: str) -> str: ...
def get_column_letter(col_idx: int) -> str: ...
def column_index_from_string(col: str) -> int: ...
def range_boundaries(range_string: str) -> _RangeBoundariesTuple: ...
def rows_from_range(range_string: str) -> Generator[tuple[str, ...], None, None]: ...
def cols_from_range(range_string: str) -> Generator[tuple[str, ...], None, None]: ...
def rows_from_range(range_string: str) -> Generator[tuple[str, ...]]: ...
def cols_from_range(range_string: str) -> Generator[tuple[str, ...]]: ...
def coordinate_to_tuple(coordinate: str) -> tuple[int, int]: ...
def range_to_tuple(range_string: str) -> tuple[str, _RangeBoundariesTuple]: ...
def quote_sheetname(sheetname: str) -> str: ...
+2 -2
View File
@@ -1,5 +1,5 @@
from _typeshed import Incomplete
from collections.abc import Generator
def dataframe_to_rows(df, index: bool = True, header: bool = True) -> Generator[Incomplete, None, None]: ...
def expand_index(index, header: bool = False) -> Generator[Incomplete, None, None]: ...
def dataframe_to_rows(df, index: bool = True, header: bool = True) -> Generator[Incomplete]: ...
def expand_index(index, header: bool = False) -> Generator[Incomplete]: ...
@@ -53,7 +53,7 @@ class DefinedName(Serialisable):
@property
def type(self) -> _TokenTypesNotOperand | _TokenOperandSubtypes: ...
@property
def destinations(self) -> Generator[tuple[str, str], None, None]: ...
def destinations(self) -> Generator[tuple[str, str]]: ...
@property
def is_reserved(self) -> str | None: ...
@property
@@ -15,11 +15,11 @@ class ReadOnlyWorksheet:
# Same as Worksheet.values
# https://github.com/python/mypy/issues/6700
@property
def values(self) -> Generator[tuple[_CellGetValue, ...], None, None]: ...
def values(self) -> Generator[tuple[_CellGetValue, ...]]: ...
# Same as Worksheet.rows
# https://github.com/python/mypy/issues/6700
@property
def rows(self) -> Generator[tuple[_CellOrMergedCell, ...], None, None]: ...
def rows(self) -> Generator[tuple[_CellOrMergedCell, ...]]: ...
__getitem__ = Worksheet.__getitem__
__iter__ = Worksheet.__iter__
parent: Workbook
@@ -84,7 +84,7 @@ class WorkSheetParser:
timedelta_formats: Container[int] = ...,
rich_text: bool = False,
) -> None: ...
def parse(self) -> Generator[Incomplete, None, None]: ...
def parse(self) -> Generator[Incomplete]: ...
def parse_dimensions(self) -> _RangeBoundariesTuple | None: ...
def parse_cell(self, element) -> dict[str, _AnyCellValue]: ...
def parse_formula(self, element): ...
@@ -24,7 +24,7 @@ def create_temporary_file(suffix: str = "") -> str: ...
class WorksheetWriter:
ws: Worksheet | WriteOnlyWorksheet
out: _OutType
xf: Generator[Incomplete | None, Incomplete, None]
xf: Generator[Incomplete | None, Incomplete]
def __init__(self, ws: Worksheet | WriteOnlyWorksheet, out: _OutType | None = None) -> None: ...
def write_properties(self) -> None: ...
def write_dimensions(self) -> None: ...
@@ -51,7 +51,7 @@ class WorksheetWriter:
def write_drawings(self) -> None: ...
def write_legacy(self) -> None: ...
def write_tables(self) -> None: ...
def get_stream(self) -> Generator[Incomplete | None, bool | None, None]: ...
def get_stream(self) -> Generator[Incomplete | None, bool | None]: ...
def write_tail(self) -> None: ...
def write(self) -> None: ...
def close(self) -> None: ...
@@ -53,9 +53,9 @@ class CellRange(Serialisable):
@property
def coord(self) -> str: ...
@property
def rows(self) -> Generator[list[tuple[int, int]], None, None]: ...
def rows(self) -> Generator[list[tuple[int, int]]]: ...
@property
def cols(self) -> Generator[list[tuple[int, int]], None, None]: ...
def cols(self) -> Generator[list[tuple[int, int]]]: ...
@property
def cells(self) -> product[tuple[int, int]]: ...
def __copy__(self): ...
+12 -12
View File
@@ -119,7 +119,7 @@ class Worksheet(_WorkbookChild):
@overload
def iter_rows(
self, min_row: int | None, max_row: int | None, min_col: int | None, max_col: int | None, values_only: Literal[True]
) -> Generator[tuple[_CellGetValue, ...], None, None]: ...
) -> Generator[tuple[_CellGetValue, ...]]: ...
@overload
def iter_rows(
self,
@@ -129,7 +129,7 @@ class Worksheet(_WorkbookChild):
max_col: int | None = None,
*,
values_only: Literal[True],
) -> Generator[tuple[_CellGetValue, ...], None, None]: ...
) -> Generator[tuple[_CellGetValue, ...]]: ...
@overload
def iter_rows(
self,
@@ -138,11 +138,11 @@ class Worksheet(_WorkbookChild):
min_col: int | None = None,
max_col: int | None = None,
values_only: Literal[False] = False,
) -> Generator[tuple[_CellOrMergedCell, ...], None, None]: ...
) -> Generator[tuple[_CellOrMergedCell, ...]]: ...
@overload
def iter_rows(
self, min_row: int | None, max_row: int | None, min_col: int | None, max_col: int | None, values_only: bool
) -> Generator[tuple[_CellOrMergedCell, ...], None, None] | Generator[tuple[_CellGetValue, ...], None, None]: ...
) -> Generator[tuple[_CellOrMergedCell, ...]] | Generator[tuple[_CellGetValue, ...]]: ...
@overload
def iter_rows(
self,
@@ -152,15 +152,15 @@ class Worksheet(_WorkbookChild):
max_col: int | None = None,
*,
values_only: bool,
) -> Generator[tuple[_CellOrMergedCell, ...], None, None] | Generator[tuple[_CellGetValue, ...], None, None]: ...
) -> Generator[tuple[_CellOrMergedCell, ...]] | Generator[tuple[_CellGetValue, ...]]: ...
@property
def rows(self) -> Generator[tuple[_CellOrMergedCell, ...], None, None]: ...
def rows(self) -> Generator[tuple[_CellOrMergedCell, ...]]: ...
@property
def values(self) -> Generator[tuple[_CellGetValue, ...]]: ...
@overload
def iter_cols(
self, min_col: int | None, max_col: int | None, min_row: int | None, max_row: int | None, values_only: Literal[True]
) -> Generator[tuple[_CellGetValue, ...], None, None]: ...
) -> Generator[tuple[_CellGetValue, ...]]: ...
@overload
def iter_cols(
self,
@@ -170,7 +170,7 @@ class Worksheet(_WorkbookChild):
max_row: int | None = None,
*,
values_only: Literal[True],
) -> Generator[tuple[_CellGetValue, ...], None, None]: ...
) -> Generator[tuple[_CellGetValue, ...]]: ...
@overload
def iter_cols(
self,
@@ -179,11 +179,11 @@ class Worksheet(_WorkbookChild):
min_row: int | None = None,
max_row: int | None = None,
values_only: Literal[False] = False,
) -> Generator[tuple[_CellOrMergedCell, ...], None, None]: ...
) -> Generator[tuple[_CellOrMergedCell, ...]]: ...
@overload
def iter_cols(
self, min_col: int | None, max_col: int | None, min_row: int | None, max_row: int | None, values_only: bool
) -> Generator[tuple[_CellOrMergedCell, ...], None, None] | Generator[tuple[_CellGetValue, ...], None, None]: ...
) -> Generator[tuple[_CellOrMergedCell, ...]] | Generator[tuple[_CellGetValue, ...]]: ...
@overload
def iter_cols(
self,
@@ -193,9 +193,9 @@ class Worksheet(_WorkbookChild):
max_row: int | None = None,
*,
values_only: bool,
) -> Generator[tuple[_CellOrMergedCell, ...], None, None] | Generator[tuple[_CellGetValue, ...], None, None]: ...
) -> Generator[tuple[_CellOrMergedCell, ...]] | Generator[tuple[_CellGetValue, ...]]: ...
@property
def columns(self) -> Generator[tuple[_CellOrMergedCell, ...], None, None]: ...
def columns(self) -> Generator[tuple[_CellOrMergedCell, ...]]: ...
@property
def column_groups(self) -> list[str]: ...
def set_printer_settings(