mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
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:
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user