drop ellipsis assignments from module vars, classvars and instance attrs (#5914)

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
Oleg Höfling
2021-08-11 19:26:58 +02:00
committed by GitHub
parent 6c41e3cead
commit 64f481189f
34 changed files with 325 additions and 325 deletions

View File

@@ -6,25 +6,25 @@ from typing_extensions import Literal
dialogstates: dict[Any, Tuple[Any, Any]]
class FileDialog:
title: str = ...
master: Any = ...
directory: Any | None = ...
top: Toplevel = ...
botframe: Frame = ...
selection: Entry = ...
filter: Entry = ...
midframe: Entry = ...
filesbar: Scrollbar = ...
files: Listbox = ...
dirsbar: Scrollbar = ...
dirs: Listbox = ...
ok_button: Button = ...
filter_button: Button = ...
cancel_button: Button = ...
title: str
master: Any
directory: Any | None
top: Toplevel
botframe: Frame
selection: Entry
filter: Entry
midframe: Entry
filesbar: Scrollbar
files: Listbox
dirsbar: Scrollbar
dirs: Listbox
ok_button: Button
filter_button: Button
cancel_button: Button
def __init__(
self, master, title: Any | None = ...
) -> None: ... # title is usually a str or None, but e.g. int doesn't raise en exception either
how: Any | None = ...
how: Any | None
def go(self, dir_or_file: Any = ..., pattern: str = ..., default: str = ..., key: Any | None = ...): ...
def quit(self, how: Any | None = ...) -> None: ...
def dirs_double_event(self, event) -> None: ...
@@ -41,23 +41,23 @@ class FileDialog:
def set_selection(self, file) -> None: ...
class LoadFileDialog(FileDialog):
title: str = ...
title: str
def ok_command(self) -> None: ...
class SaveFileDialog(FileDialog):
title: str = ...
title: str
def ok_command(self): ...
class _Dialog(commondialog.Dialog): ...
class Open(_Dialog):
command: ClassVar[str] = ...
command: ClassVar[str]
class SaveAs(_Dialog):
command: ClassVar[str] = ...
command: ClassVar[str]
class Directory(commondialog.Dialog):
command: ClassVar[str] = ...
command: ClassVar[str]
# TODO: command kwarg available on macos
def asksaveasfilename(