Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

@@ -1,27 +1,27 @@
from tkinter import Event, Misc, Toplevel
from typing import Any, List, Optional
from typing import Any, List
class Dialog(Toplevel):
def __init__(self, parent: Optional[Misc], title: Optional[str] = ...) -> None: ...
def __init__(self, parent: Misc | None, title: str | None = ...) -> None: ...
def body(self, master) -> None: ...
def buttonbox(self): ...
class SimpleDialog:
def __init__(
self,
master: Optional[Misc],
master: Misc | None,
text: str = ...,
buttons: List[str] = ...,
default: Optional[int] = ...,
cancel: Optional[int] = ...,
title: Optional[str] = ...,
class_: Optional[str] = ...,
default: int | None = ...,
cancel: int | None = ...,
title: str | None = ...,
class_: str | None = ...,
) -> None: ...
def go(self) -> Optional[int]: ...
def go(self) -> int | None: ...
def return_event(self, event: Event[Misc]) -> None: ...
def wm_delete_window(self) -> None: ...
def done(self, num: int) -> None: ...
def askfloat(title: Optional[str], prompt: str, **kwargs: Any) -> float: ...
def askinteger(title: Optional[str], prompt: str, **kwargs: Any) -> int: ...
def askstring(title: Optional[str], prompt: str, **kwargs: Any) -> str: ...
def askfloat(title: str | None, prompt: str, **kwargs: Any) -> float: ...
def askinteger(title: str | None, prompt: str, **kwargs: Any) -> int: ...
def askstring(title: str | None, prompt: str, **kwargs: Any) -> str: ...