Remove Python 3.7 branches (#11238)

This commit is contained in:
Sebastian Rittau
2024-01-05 11:39:39 +01:00
committed by GitHub
parent 4e62577002
commit 23604858a6
122 changed files with 1952 additions and 3800 deletions

View File

@@ -1712,9 +1712,7 @@ class Canvas(Widget, XView, YView):
) -> dict[str, tuple[str, str, str, str, str]] | None: ...
itemconfig = itemconfigure
def move(self, *args) -> None: ...
if sys.version_info >= (3, 8):
def moveto(self, tagOrId: str | int, x: Literal[""] | float = "", y: Literal[""] | float = "") -> None: ...
def moveto(self, tagOrId: str | int, x: Literal[""] | float = "", y: Literal[""] | float = "") -> None: ...
def postscript(self, cnf={}, **kw): ...
# tkinter does:
# lower = tag_lower
@@ -3338,9 +3336,8 @@ class PhotoImage(Image, _PhotoImageLike):
to: tuple[int, int] | None = None,
) -> None: ...
def write(self, filename: StrOrBytesPath, format: str | None = None, from_coords: tuple[int, int] | None = None) -> None: ...
if sys.version_info >= (3, 8):
def transparency_get(self, x: int, y: int) -> bool: ...
def transparency_set(self, x: int, y: int, boolean: bool) -> None: ...
def transparency_get(self, x: int, y: int) -> bool: ...
def transparency_set(self, x: int, y: int, boolean: bool) -> None: ...
class BitmapImage(Image, _BitmapImageLike):
# This should be kept in sync with PIL.ImageTK.BitmapImage.__init__()
@@ -3495,11 +3492,10 @@ class Spinbox(Widget, XView):
def selection_adjust(self, index): ...
def selection_clear(self): ...
def selection_element(self, element: Incomplete | None = None): ...
if sys.version_info >= (3, 8):
def selection_from(self, index: int) -> None: ...
def selection_present(self) -> None: ...
def selection_range(self, start: int, end: int) -> None: ...
def selection_to(self, index: int) -> None: ...
def selection_from(self, index: int) -> None: ...
def selection_present(self) -> None: ...
def selection_range(self, start: int, end: int) -> None: ...
def selection_to(self, index: int) -> None: ...
class LabelFrame(Widget):
def __init__(

View File

@@ -1,5 +1,4 @@
import _tkinter
import sys
import tkinter
from _typeshed import Incomplete
from collections.abc import Callable
@@ -1102,11 +1101,7 @@ class Treeview(Widget, tkinter.XView, tkinter.YView):
def parent(self, item: str | int) -> str: ...
def prev(self, item: str | int) -> str: ... # returning empty string means first item
def see(self, item: str | int) -> None: ...
if sys.version_info >= (3, 8):
def selection(self) -> tuple[str, ...]: ...
else:
def selection(self, selop: Incomplete | None = ..., items: Incomplete | None = None) -> tuple[str, ...]: ...
def selection(self) -> tuple[str, ...]: ...
@overload
def selection_set(self, __items: list[str] | tuple[str, ...] | list[int] | tuple[int, ...]) -> None: ...
@overload