mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user