mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
fix using ZipFile as a ContextManager (#2043)
This commit is contained in:
committed by
Łukasz Langa
parent
b8b78886e3
commit
37aba00fe8
@@ -1,6 +1,6 @@
|
||||
# Stubs for socketserver
|
||||
|
||||
from typing import Any, BinaryIO, Optional, Tuple
|
||||
from typing import Any, BinaryIO, Optional, Tuple, Type
|
||||
from socket import SocketType
|
||||
import sys
|
||||
import types
|
||||
@@ -35,8 +35,8 @@ class BaseServer:
|
||||
client_address: Tuple[str, int]) -> bool: ...
|
||||
if sys.version_info >= (3, 6):
|
||||
def __enter__(self) -> 'BaseServer': ...
|
||||
def __exit__(self, exc_type: Optional[type],
|
||||
exc_val: Optional[Exception],
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]],
|
||||
exc_val: Optional[BaseException],
|
||||
exc_tb: Optional[types.TracebackType]) -> bool: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def service_actions(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user