From 2d2b34c1ee25f9c63554250d2b5f897a395ae300 Mon Sep 17 00:00:00 2001 From: Xavier Francisco <98830734+XF-FW@users.noreply.github.com> Date: Fri, 27 May 2022 12:58:20 +0000 Subject: [PATCH] `openpyxl`: annotate openpyxl.utils.cell stubs (#7969) --- stubs/openpyxl/openpyxl/utils/cell.pyi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/stubs/openpyxl/openpyxl/utils/cell.pyi b/stubs/openpyxl/openpyxl/utils/cell.pyi index 3a14ebc65..6fc91f158 100644 --- a/stubs/openpyxl/openpyxl/utils/cell.pyi +++ b/stubs/openpyxl/openpyxl/utils/cell.pyi @@ -9,17 +9,17 @@ ABSOLUTE_RE: Any SHEET_TITLE: str SHEETRANGE_RE: Any -def get_column_interval(start, end): ... -def coordinate_from_string(coord_string): ... -def absolute_coordinate(coord_string): ... +def get_column_interval(start: str | int, end: str | int) -> list[str]: ... +def coordinate_from_string(coord_string: str) -> tuple[str, int]: ... +def absolute_coordinate(coord_string: str) -> str: ... col: Any -def get_column_letter(idx): ... -def column_index_from_string(str_col): ... -def range_boundaries(range_string): ... +def get_column_letter(idx: int) -> str: ... +def column_index_from_string(str_col: str) -> int: ... +def range_boundaries(range_string: str) -> tuple[int, int, int, int]: ... def rows_from_range(range_string) -> Generator[Any, None, None]: ... def cols_from_range(range_string) -> Generator[Any, None, None]: ... -def coordinate_to_tuple(coordinate): ... -def range_to_tuple(range_string): ... -def quote_sheetname(sheetname): ... +def coordinate_to_tuple(coordinate: str) -> tuple[int, int]: ... +def range_to_tuple(range_string: str) -> tuple[str, tuple[int, int, int, int]]: ... +def quote_sheetname(sheetname: str) -> str: ...