From afb265ce846e23612d501763d316883fc46bc932 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 9 Jan 2022 19:40:35 +0300 Subject: [PATCH] Improve `bdb` with `Literal` and `__all__` (#6844) --- stdlib/bdb.pyi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib/bdb.pyi b/stdlib/bdb.pyi index 993f0c6e2..d61c7d3fd 100644 --- a/stdlib/bdb.pyi +++ b/stdlib/bdb.pyi @@ -1,11 +1,14 @@ from types import CodeType, FrameType, TracebackType from typing import IO, Any, Callable, Iterable, Mapping, SupportsInt, TypeVar +from typing_extensions import Literal + +__all__ = ["BdbQuit", "Bdb", "Breakpoint"] _T = TypeVar("_T") _TraceDispatch = Callable[[FrameType, str, Any], Any] # TODO: Recursive type _ExcInfo = tuple[type[BaseException], BaseException, FrameType] -GENERATOR_AND_COROUTINE_FLAGS: int +GENERATOR_AND_COROUTINE_FLAGS: Literal[672] class BdbQuit(Exception): ...