Skip to content

Commit 47cfbee

Browse files
Fix incomplete tkinter.commondialog stub (#14340)
Co-authored-by: Akuli <akuviljanen17@gmail.com>
1 parent 1511911 commit 47cfbee

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

stdlib/tkinter/commondialog.pyi

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
from _typeshed import Incomplete
21
from collections.abc import Mapping
3-
from typing import ClassVar
2+
from tkinter import Misc
3+
from typing import Any, ClassVar
44

55
__all__ = ["Dialog"]
66

77
class Dialog:
88
command: ClassVar[str | None]
9-
master: Incomplete | None
10-
options: Mapping[str, Incomplete]
11-
def __init__(self, master=None, **options) -> None: ...
12-
def show(self, **options): ...
9+
master: Misc | None
10+
# Types of options are very dynamic. They depend on the command and are
11+
# sometimes changed to a different type.
12+
options: Mapping[str, Any]
13+
def __init__(self, master: Misc | None = None, **options: Any) -> None: ...
14+
def show(self, **options: Any): ...

0 commit comments

Comments
 (0)