mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Clean up files with former forced consistency (#4717)
Replace Text with str in Python 3 code
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
import types
|
||||
from socket import SocketType
|
||||
from typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Text, Tuple, Type, Union
|
||||
from typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Tuple, Type, Union
|
||||
|
||||
class BaseServer:
|
||||
address_family: int
|
||||
@@ -31,8 +31,7 @@ class BaseServer:
|
||||
def __exit__(
|
||||
self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], exc_tb: Optional[types.TracebackType]
|
||||
) -> None: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def service_actions(self) -> None: ...
|
||||
def service_actions(self) -> None: ...
|
||||
|
||||
class TCPServer(BaseServer):
|
||||
def __init__(
|
||||
@@ -54,14 +53,14 @@ if sys.platform != "win32":
|
||||
class UnixStreamServer(BaseServer):
|
||||
def __init__(
|
||||
self,
|
||||
server_address: Union[Text, bytes],
|
||||
server_address: Union[str, bytes],
|
||||
RequestHandlerClass: Callable[..., BaseRequestHandler],
|
||||
bind_and_activate: bool = ...,
|
||||
) -> None: ...
|
||||
class UnixDatagramServer(BaseServer):
|
||||
def __init__(
|
||||
self,
|
||||
server_address: Union[Text, bytes],
|
||||
server_address: Union[str, bytes],
|
||||
RequestHandlerClass: Callable[..., BaseRequestHandler],
|
||||
bind_and_activate: bool = ...,
|
||||
) -> None: ...
|
||||
@@ -78,8 +77,7 @@ if sys.platform != "win32":
|
||||
else:
|
||||
def collect_children(self) -> None: ... # undocumented
|
||||
def handle_timeout(self) -> None: ... # undocumented
|
||||
if sys.version_info >= (3, 3):
|
||||
def service_actions(self) -> None: ... # undocumented
|
||||
def service_actions(self) -> None: ... # undocumented
|
||||
def process_request(self, request: bytes, client_address: Tuple[str, int]) -> None: ...
|
||||
if sys.version_info >= (3, 6):
|
||||
def server_close(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user