mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Use PEP 570 syntax in stdlib (#11250)
This commit is contained in:
@@ -1105,19 +1105,19 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
|
||||
def see(self, item: str | int) -> None: ...
|
||||
def selection(self) -> tuple[str, ...]: ...
|
||||
@overload
|
||||
def selection_set(self, __items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...]) -> None: ...
|
||||
def selection_set(self, items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...], /) -> None: ...
|
||||
@overload
|
||||
def selection_set(self, *items: str | int) -> None: ...
|
||||
@overload
|
||||
def selection_add(self, __items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...]) -> None: ...
|
||||
def selection_add(self, items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...], /) -> None: ...
|
||||
@overload
|
||||
def selection_add(self, *items: str | int) -> None: ...
|
||||
@overload
|
||||
def selection_remove(self, __items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...]) -> None: ...
|
||||
def selection_remove(self, items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...], /) -> None: ...
|
||||
@overload
|
||||
def selection_remove(self, *items: str | int) -> None: ...
|
||||
@overload
|
||||
def selection_toggle(self, __items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...]) -> None: ...
|
||||
def selection_toggle(self, items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...], /) -> None: ...
|
||||
@overload
|
||||
def selection_toggle(self, *items: str | int) -> None: ...
|
||||
@overload
|
||||
|
||||
Reference in New Issue
Block a user