mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import sys
|
||||
from typing import IO, Union
|
||||
from typing import IO
|
||||
|
||||
if sys.platform != "win32":
|
||||
_FD = Union[int, IO[str]]
|
||||
_FD = int | IO[str]
|
||||
|
||||
# XXX: Undocumented integer constants
|
||||
IFLAG: int
|
||||
|
||||
Reference in New Issue
Block a user