Simplify __all__ for modules beginning with 'm' to 't' (#8028)

This commit is contained in:
Alex Waygood
2022-06-07 20:14:15 +01:00
committed by GitHub
parent b88ea4a499
commit 591593c85f
15 changed files with 620 additions and 1626 deletions

View File

@@ -6,61 +6,35 @@ from tkinter.font import _FontDescription
from typing import Any, overload
from typing_extensions import Literal, TypeAlias, TypedDict
__all__ = [
"Button",
"Checkbutton",
"Combobox",
"Entry",
"Frame",
"Label",
"Labelframe",
"LabelFrame",
"Menubutton",
"Notebook",
"Panedwindow",
"PanedWindow",
"Progressbar",
"Radiobutton",
"Scale",
"Scrollbar",
"Separator",
"Sizegrip",
"Style",
"Treeview",
"LabeledScale",
"OptionMenu",
"tclobjs_to_py",
"setup_master",
]
if sys.version_info >= (3, 7):
__all__ = [
"Button",
"Checkbutton",
"Combobox",
"Entry",
"Frame",
"Label",
"Labelframe",
"LabelFrame",
"Menubutton",
"Notebook",
"Panedwindow",
"PanedWindow",
"Progressbar",
"Radiobutton",
"Scale",
"Scrollbar",
"Separator",
"Sizegrip",
"Spinbox",
"Style",
"Treeview",
"LabeledScale",
"OptionMenu",
"tclobjs_to_py",
"setup_master",
]
else:
__all__ = [
"Button",
"Checkbutton",
"Combobox",
"Entry",
"Frame",
"Label",
"Labelframe",
"LabelFrame",
"Menubutton",
"Notebook",
"Panedwindow",
"PanedWindow",
"Progressbar",
"Radiobutton",
"Scale",
"Scrollbar",
"Separator",
"Sizegrip",
"Style",
"Treeview",
"LabeledScale",
"OptionMenu",
"tclobjs_to_py",
"setup_master",
]
__all__ += ["Spinbox"]
def tclobjs_to_py(adict: dict[Any, Any]) -> dict[Any, Any]: ...
def setup_master(master: Any | None = ...): ...