diff --git a/stdlib/3/tkinter/__init__.pyi b/stdlib/3/tkinter/__init__.pyi index a8ac84833..e59c26f10 100644 --- a/stdlib/3/tkinter/__init__.pyi +++ b/stdlib/3/tkinter/__init__.pyi @@ -388,8 +388,7 @@ class Misc: def grid_bbox(self, column: int, row: int, col2: None = ..., row2: None = ...) -> Optional[Tuple[int, int, int, int]]: ... @overload def grid_bbox(self, column: int, row: int, col2: int, row2: int) -> Optional[Tuple[int, int, int, int]]: ... - # commented out to avoid conflicting with other bbox methods - # bbox = grid_bbox + bbox = grid_bbox def grid_columnconfigure(self, index, cnf=..., **kw): ... # TODO def grid_rowconfigure(self, index, cnf=..., **kw): ... # TODO columnconfigure = grid_columnconfigure @@ -2655,7 +2654,7 @@ class Text(Widget, XView, YView): def configure(self, cnf: _TextOptionName) -> Tuple[str, str, str, Any, Any]: ... config = configure def cget(self, key: _TextOptionName) -> Any: ... - def bbox(self, index: _TextIndex) -> Optional[Tuple[int, int, int, int]]: ... + def bbox(self, index: _TextIndex) -> Optional[Tuple[int, int, int, int]]: ... # type: ignore def compare(self, index1: _TextIndex, op: Literal["<", "<=", "==", ">=", ">", "!="], index2: _TextIndex) -> bool: ... def count(self, index1, index2, *args): ... # TODO @overload diff --git a/stdlib/3/tkinter/ttk.pyi b/stdlib/3/tkinter/ttk.pyi index 2162373ac..65fed7a57 100644 --- a/stdlib/3/tkinter/ttk.pyi +++ b/stdlib/3/tkinter/ttk.pyi @@ -1150,7 +1150,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView): def configure(self, cnf: _TreeviewOptionName) -> Tuple[str, str, str, Any, Any]: ... config = configure def cget(self, key: _TreeviewOptionName) -> Any: ... - def bbox(self, item, column: Optional[Any] = ...): ... + def bbox(self, item, column: Optional[Any] = ...): ... # type: ignore def get_children(self, item: Optional[Any] = ...): ... def set_children(self, item, *newchildren): ... def column(self, column, option: Optional[Any] = ..., **kw): ...