Use typeshed.Incomplete and object instead of Any in tkinter stubs (#8458)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Akuli
2022-08-02 22:10:25 +03:00
committed by GitHub
parent 1dc1c91429
commit 5e5f3b4ecc
10 changed files with 230 additions and 218 deletions

View File

@@ -1,13 +1,14 @@
import sys
from _typeshed import Incomplete
from collections.abc import Mapping
from typing import Any, ClassVar
from typing import ClassVar
if sys.version_info >= (3, 9):
__all__ = ["Dialog"]
class Dialog:
command: ClassVar[str | None]
master: Any | None
options: Mapping[str, Any]
def __init__(self, master: Any | None = ..., **options) -> None: ...
def show(self, **options) -> Any: ...
master: Incomplete | None
options: Mapping[str, Incomplete]
def __init__(self, master: Incomplete | None = ..., **options) -> None: ...
def show(self, **options): ...