File tree Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Expand file tree Collapse file tree 5 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1313
1414if t .TYPE_CHECKING :
1515 from os import PathLike
16-
17- from typing_extensions import TypeAlias
16+ from typing import TypeAlias
1817
1918StrPath : TypeAlias = "str | PathLike[str]"
Original file line number Diff line number Diff line change 2727LocalType = t .Union [
2828 NegativeInfinityType ,
2929 tuple [
30- t .Union [
31- SubLocalType ,
32- tuple [SubLocalType , str ],
33- tuple [NegativeInfinityType , SubLocalType ],
34- ],
30+ SubLocalType
31+ | tuple [SubLocalType , str ]
32+ | tuple [NegativeInfinityType , SubLocalType ],
3533 ...,
3634 ],
3735]
Original file line number Diff line number Diff line change 4141 if sys .version_info >= (3 , 10 ):
4242 from typing import Self , TypeAlias
4343 else :
44- from typing_extensions import Self , TypeAlias
44+ from typing import TypeAlias
45+
46+ from typing_extensions import Self
4547
4648 DashLiteral : TypeAlias = t .Literal ["-" ]
4749
Original file line number Diff line number Diff line change 1717 if sys .version_info >= (3 , 10 ):
1818 from typing import TypeAlias
1919 else :
20- from typing_extensions import TypeAlias
20+ from typing import TypeAlias
2121
2222 try :
2323 from _pytest .raises import RaisesExc
Original file line number Diff line number Diff line change 1717 if sys .version_info >= (3 , 10 ):
1818 from typing import TypeAlias
1919 else :
20- from typing_extensions import TypeAlias
20+ from typing import TypeAlias
2121
2222 try :
2323 from _pytest .raises import RaisesExc
You can’t perform that action at this time.
0 commit comments