Use PEP 585 syntax wherever possible (#6717)

This commit is contained in:
Alex Waygood
2021-12-28 10:31:43 +00:00
committed by GitHub
parent e6cb341d94
commit 8d5d2520ac
237 changed files with 966 additions and 1069 deletions

View File

@@ -1,5 +1,5 @@
import tkinter
from typing import Any, Tuple
from typing import Any
from typing_extensions import Literal
WINDOW: Literal["window"]
@@ -194,7 +194,7 @@ class HList(TixWidget, tkinter.XView, tkinter.YView):
def indicator_size(self, entry: str) -> int: ...
def info_anchor(self) -> str: ...
def info_bbox(self, entry: str) -> tuple[int, int, int, int]: ...
def info_children(self, entry: str | None = ...) -> Tuple[str, ...]: ...
def info_children(self, entry: str | None = ...) -> tuple[str, ...]: ...
def info_data(self, entry: str) -> Any: ...
def info_dragsite(self) -> str: ...
def info_dropsite(self) -> str: ...
@@ -203,7 +203,7 @@ class HList(TixWidget, tkinter.XView, tkinter.YView):
def info_next(self, entry: str) -> str: ...
def info_parent(self, entry: str) -> str: ...
def info_prev(self, entry: str) -> str: ...
def info_selection(self) -> Tuple[str, ...]: ...
def info_selection(self) -> tuple[str, ...]: ...
def item_cget(self, entry: str, col: int, opt: Any) -> Any: ...
def item_configure(self, entry: str, col: int, cnf: dict[str, Any] = ..., **kw: Any) -> Any | None: ...
def item_create(self, entry: str, col: int, cnf: dict[str, Any] = ..., **kw: Any) -> None: ...
@@ -224,7 +224,7 @@ class CheckList(TixWidget):
def close(self, entrypath: str) -> None: ...
def getmode(self, entrypath: str) -> str: ...
def open(self, entrypath: str) -> None: ...
def getselection(self, mode: str = ...) -> Tuple[str, ...]: ...
def getselection(self, mode: str = ...) -> tuple[str, ...]: ...
def getstatus(self, entrypath: str) -> str: ...
def setstatus(self, entrypath: str, mode: str = ...) -> None: ...
@@ -253,7 +253,7 @@ class TList(TixWidget, tkinter.XView, tkinter.YView):
def info_down(self, index: int) -> int: ...
def info_left(self, index: int) -> int: ...
def info_right(self, index: int) -> int: ...
def info_selection(self) -> Tuple[int, ...]: ...
def info_selection(self) -> tuple[int, ...]: ...
def info_size(self) -> int: ...
def info_up(self, index: int) -> int: ...
def nearest(self, x: int, y: int) -> int: ...