mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import types
|
||||
import unittest
|
||||
from typing import Any, Callable, NamedTuple, Tuple, Type
|
||||
from typing import Any, Callable, NamedTuple, Type
|
||||
|
||||
class TestResults(NamedTuple):
|
||||
failed: int
|
||||
@@ -86,7 +86,7 @@ class DocTestFinder:
|
||||
) -> list[DocTest]: ...
|
||||
|
||||
_Out = Callable[[str], Any]
|
||||
_ExcInfo = Tuple[Type[BaseException], BaseException, types.TracebackType]
|
||||
_ExcInfo = tuple[Type[BaseException], BaseException, types.TracebackType]
|
||||
|
||||
class DocTestRunner:
|
||||
DIVIDER: str
|
||||
|
||||
Reference in New Issue
Block a user