mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-31 08:34:23 +08:00
Correct print_exception for 3.10. (#6487)
This commit is contained in:
@@ -9,7 +9,7 @@ def print_tb(tb: TracebackType | None, limit: int | None = ..., file: IO[str] |
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def print_exception(
|
||||
__exc: Type[BaseException] | None,
|
||||
__exc: Type[BaseException] | BaseException | None,
|
||||
value: BaseException | None = ...,
|
||||
tb: TracebackType | None = ...,
|
||||
limit: int | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user