mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
Use PEP 604 syntax wherever possible, part II (#7514)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from _tracemalloc import *
|
||||
from typing import Any, Optional, Sequence, Union, overload
|
||||
from typing import Any, Sequence, Union, overload
|
||||
from typing_extensions import SupportsIndex
|
||||
|
||||
def get_object_traceback(obj: object) -> Traceback | None: ...
|
||||
@@ -61,7 +61,7 @@ class Frame:
|
||||
def __le__(self, other: Frame, NotImplemented: Any = ...) -> bool: ...
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
_TraceTupleT = Union[tuple[int, int, Sequence[_FrameTupleT], Optional[int]], tuple[int, int, Sequence[_FrameTupleT]]]
|
||||
_TraceTupleT = Union[tuple[int, int, Sequence[_FrameTupleT], int | None], tuple[int, int, Sequence[_FrameTupleT]]]
|
||||
else:
|
||||
_TraceTupleT = tuple[int, int, Sequence[_FrameTupleT]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user