mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from typing import Union
|
||||
|
||||
_RGB = Union[tuple[int, int, int], tuple[int, int, int, int]]
|
||||
_Ink = Union[str, int, _RGB]
|
||||
_Ink = str | int | _RGB
|
||||
_GreyScale = tuple[int, int]
|
||||
|
||||
def getrgb(color: _Ink) -> _RGB: ...
|
||||
|
||||
Reference in New Issue
Block a user