Delete tkinter._ExceptionReportingCallback (#10689)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
Akuli
2023-09-12 20:16:47 +03:00
committed by GitHub
parent c31e12fff1
commit fbd7963fd6
2 changed files with 16 additions and 5 deletions

View File

@@ -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.