mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 12:26:44 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user