openpyxl: CellRange: title should not be required (#10688)

Fixes #10682
This commit is contained in:
Martina Oefelein
2023-09-10 16:00:49 +02:00
committed by GitHub
parent 703ed36d5a
commit 011b5b9c2c

View File

@@ -12,9 +12,7 @@ class CellRange(Serialisable):
min_row: MinMax[int, Literal[False]]
max_col: MinMax[int, Literal[False]]
max_row: MinMax[int, Literal[False]]
# Could be None if the caller forgot to set title and range_string doesn't contain "!"
# but that's not intended and will lead to errors (ie: can't be None in __str__)
title: str
title: str | None
@overload
def __init__(
@@ -35,7 +33,7 @@ class CellRange(Serialisable):
min_row: _ConvertibleToInt,
max_col: _ConvertibleToInt,
max_row: _ConvertibleToInt,
title: str,
title: str | None = None,
) -> None: ...
@property
def bounds(self): ...