mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Delete tkinter._ExceptionReportingCallback (#10689)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -6,7 +6,7 @@ from enum import Enum
|
||||
from tkinter.constants import *
|
||||
from tkinter.font import _FontDescription
|
||||
from types import TracebackType
|
||||
from typing import Any, Generic, NamedTuple, Protocol, TypeVar, overload, type_check_only
|
||||
from typing import Any, Generic, NamedTuple, TypeVar, overload, type_check_only
|
||||
from typing_extensions import Literal, TypeAlias, TypedDict
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
@@ -720,9 +720,6 @@ class Wm:
|
||||
def wm_withdraw(self) -> None: ...
|
||||
withdraw = wm_withdraw
|
||||
|
||||
class _ExceptionReportingCallback(Protocol):
|
||||
def __call__(self, __exc: type[BaseException], __val: BaseException, __tb: TracebackType | None) -> object: ...
|
||||
|
||||
class Tk(Misc, Wm):
|
||||
master: None
|
||||
def __init__(
|
||||
@@ -764,7 +761,7 @@ class Tk(Misc, Wm):
|
||||
config = configure
|
||||
def destroy(self) -> None: ...
|
||||
def readprofile(self, baseName: str, className: str) -> None: ...
|
||||
report_callback_exception: _ExceptionReportingCallback
|
||||
report_callback_exception: Callable[[type[BaseException], BaseException, TracebackType | None], object]
|
||||
# Tk has __getattr__ so that tk_instance.foo falls back to tk_instance.tk.foo
|
||||
# Please keep in sync with _tkinter.TkappType.
|
||||
# Some methods are intentionally missing because they are inherited from Misc instead.
|
||||
|
||||
Reference in New Issue
Block a user