cgi: Add print_exception and print_arguments (#7359)

This commit is contained in:
Alex Waygood
2022-02-22 16:38:02 +00:00
committed by GitHub
parent 12f45c5efb
commit bdcaea4305
2 changed files with 9 additions and 2 deletions

View File

@@ -2,6 +2,7 @@ import sys
from _typeshed import Self, SupportsGetItem, SupportsItemAccess
from builtins import type as _type
from collections.abc import Iterable, Iterator, Mapping
from types import TracebackType
from typing import IO, Any, Protocol
if sys.version_info >= (3, 8):
@@ -138,3 +139,11 @@ class FieldStorage:
def __bool__(self) -> bool: ...
# In Python 3 it returns bytes or str IO depending on an internal flag
def make_file(self) -> IO[Any]: ...
def print_exception(
type: type[BaseException] | None = ...,
value: BaseException | None = ...,
tb: TracebackType | None = ...,
limit: int | None = ...,
) -> None: ...
def print_arguments() -> None: ...