mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 13:05:14 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
1 parent
15e21a8dc1
commit
3ab250eec8
174 files changed
+472
-490
No files matched your search
@@ -2,10 +2,10 @@ import sys
|
||||
from _typeshed import Self
|
||||
from decimal import Decimal
|
||||
from numbers import Integral, Rational, Real
|
||||
from typing import Any, Union, overload
|
||||
from typing import Any, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
_ComparableNum = Union[int, float, Decimal, Real]
|
||||
_ComparableNum = int | float | Decimal | Real
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
__all__ = ["Fraction"]
|
||||
|
||||
Reference in new issue
Block a user