Improve bdb with Literal and __all__ (#6844)

This commit is contained in:
Nikita Sobolev
2022-01-09 19:40:35 +03:00
committed by GitHub
parent 14c2ff6116
commit afb265ce84

View File

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