mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 10:51:15 +08:00
Use Literal types in windows_events (#6792)
This commit is contained in:
@@ -2,6 +2,7 @@ import socket
|
||||
import sys
|
||||
from _typeshed import WriteableBuffer
|
||||
from typing import IO, Any, Callable, ClassVar, NoReturn, Type
|
||||
from typing_extensions import Literal
|
||||
|
||||
from . import events, futures, proactor_events, selector_events, streams, windows_utils
|
||||
|
||||
@@ -17,10 +18,10 @@ if sys.version_info >= (3, 7):
|
||||
else:
|
||||
__all__ = ["SelectorEventLoop", "ProactorEventLoop", "IocpProactor", "DefaultEventLoopPolicy"]
|
||||
|
||||
NULL: int
|
||||
INFINITE: int
|
||||
ERROR_CONNECTION_REFUSED: int
|
||||
ERROR_CONNECTION_ABORTED: int
|
||||
NULL: Literal[0]
|
||||
INFINITE: Literal[0xFFFFFFFF]
|
||||
ERROR_CONNECTION_REFUSED: Literal[1225]
|
||||
ERROR_CONNECTION_ABORTED: Literal[1236]
|
||||
CONNECT_PIPE_INIT_DELAY: float
|
||||
CONNECT_PIPE_MAX_DELAY: float
|
||||
|
||||
|
||||
Reference in New Issue
Block a user