@@ -108,11 +108,20 @@ class AbstractEventLoop(metaclass=ABCMeta):
108
108
def create_connection (self , protocol_factory : _ProtocolFactory , host : str = ..., port : int = ..., * ,
109
109
ssl : _SSLContext = ..., family : int = ..., proto : int = ..., flags : int = ..., sock : Optional [socket ] = ...,
110
110
local_addr : str = ..., server_hostname : str = ...) -> Generator [Any , None , _TransProtPair ]: ...
111
+ @overload
112
+ @abstractmethod
113
+ @coroutine
114
+ def create_server (self , protocol_factory : _ProtocolFactory , host : Optional [Union [str , Sequence [str ]]] = ..., port : int = ..., * ,
115
+ family : int = ..., flags : int = ...,
116
+ sock : None = ..., backlog : int = ..., ssl : _SSLContext = ...,
117
+ reuse_address : Optional [bool ] = ...,
118
+ reuse_port : Optional [bool ] = ...) -> Generator [Any , None , AbstractServer ]: ...
119
+ @overload
111
120
@abstractmethod
112
121
@coroutine
113
- def create_server (self , protocol_factory : _ProtocolFactory , host : Union [ str , Sequence [ str ]] = ..., port : int = ..., * ,
122
+ def create_server (self , protocol_factory : _ProtocolFactory , host : None = ..., port : None = ..., * ,
114
123
family : int = ..., flags : int = ...,
115
- sock : Optional [ socket ] = ..., backlog : int = ..., ssl : _SSLContext = ...,
124
+ sock : socket = ..., backlog : int = ..., ssl : _SSLContext = ...,
116
125
reuse_address : Optional [bool ] = ...,
117
126
reuse_port : Optional [bool ] = ...) -> Generator [Any , None , AbstractServer ]: ...
118
127
@abstractmethod
0 commit comments