mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 23:29:12 +08:00
Correct print_exception for 3.10. (#6487)
This commit is contained in:
1 parent
a293f1e73f
commit
da895e3944
1 file changed
+1
-1
@@ -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