Skip to content

Commit 011b5b9

Browse files
authored
openpyxl: CellRange: title should not be required (#10688)
Fixes #10682
1 parent 703ed36 commit 011b5b9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

stubs/openpyxl/openpyxl/worksheet/cell_range.pyi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class CellRange(Serialisable):
1212
min_row: MinMax[int, Literal[False]]
1313
max_col: MinMax[int, Literal[False]]
1414
max_row: MinMax[int, Literal[False]]
15-
# Could be None if the caller forgot to set title and range_string doesn't contain "!"
16-
# but that's not intended and will lead to errors (ie: can't be None in __str__)
17-
title: str
15+
title: str | None
1816

1917
@overload
2018
def __init__(
@@ -35,7 +33,7 @@ class CellRange(Serialisable):
3533
min_row: _ConvertibleToInt,
3634
max_col: _ConvertibleToInt,
3735
max_row: _ConvertibleToInt,
38-
title: str,
36+
title: str | None = None,
3937
) -> None: ...
4038
@property
4139
def bounds(self): ...

0 commit comments

Comments
 (0)