8000 `openpyxl`: annotate openpyxl.utils.cell stubs (#7969) · python/typeshed@2d2b34c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d2b34c

Browse files
authored
openpyxl: annotate openpyxl.utils.cell stubs (#7969)
1 parent d2728cf commit 2d2b34c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

stubs/openpyxl/openpyxl/utils/cell.pyi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ ABSOLUTE_RE: Any
99
SHEET_TITLE: str
1010
SHEETRANGE_RE: Any
1111

12-
def get_column_interval(start, end): ...
13-
def coordinate_from_string(coord_string): ...
14-
def absolute_coordinate(coord_string): ...
12+
def get_column_interval(start: str | int, end: str | int) -> list[str]: ...
13+
def coordinate_from_string(coord_string: str) -> tuple[str, int]: ...
14+
def absolute_coordinate(coord_string: str) -> str: ...
1515

1616
col: Any
1717

18-
def get_column_letter(idx): ...
19-
def column_index_from_string(str_col): ...
20-
def range_boundaries(range_string): ...
18+
def get_column_letter(idx: int) -> str: ...
19+
def column_index_from_string(str_col: str) -> int: ...
20+
def range_boundaries(range_string: str) -> tuple[int, int, int, int]: ...
2121
def rows_from_range(range_string) -> Generator[Any, None, None]: ...
2222
def cols_from_range(range_string) -> Generator[Any, None, None]: ...
23-
def coordinate_to_tuple(coordinate): ...
24-
def range_to_tuple(range_string): ...
25-
def quote_sheetname(sheetname): ...
23+
def coordinate_to_tuple(coordinate: str) -> tuple[int, int]: ...
24+
def range_to_tuple(range_string: str) -> tuple[str, tuple[int, int, int, int]]: ...
25+
def quote_sheetname(sheetname: str) -> str: ...

0 commit comments

Comments
 (0)
0