mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use TypeAlias where possible for type aliases (#7630)
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import sys
|
||||
from typing import IO
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
if sys.platform != "win32":
|
||||
__all__ = ["setraw", "setcbreak"]
|
||||
|
||||
_FD = int | IO[str]
|
||||
_FD: TypeAlias = int | IO[str]
|
||||
|
||||
# XXX: Undocumented integer constants
|
||||
IFLAG: int
|
||||
|
||||
Reference in New Issue
Block a user