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:
AkuliandAlex Waygood authored and GitHub committed 2022-08-02 22:10:25 +03:00
1 parent 1dc1c91429
commit 5e5f3b4ecc
10 files changed
+230 -218

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
import sys
from _typeshed import Incomplete
from collections.abc import Mapping
from tkinter import Widget
from typing import Any
@@ -11,5 +12,5 @@ DIALOG_ICON: str
class Dialog(Widget):
widgetName: str
num: int
def __init__(self, master: Any | None = ..., cnf: Mapping[str, Any] = ..., **kw) -> None: ...
def __init__(self, master: Incomplete | None = ..., cnf: Mapping[str, Any] = ..., **kw) -> None: ...
def destroy(self) -> None: ...