mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
fix using ZipFile as a ContextManager (#2043)
This commit is contained in:
committed by
Łukasz Langa
parent
b8b78886e3
commit
37aba00fe8
@@ -1,5 +1,5 @@
|
||||
from typing import (
|
||||
Any, Dict, IO, Iterable, List, Iterator, Mapping, Optional, Tuple, TypeVar,
|
||||
Any, Dict, IO, Iterable, List, Iterator, Mapping, Optional, Tuple, Type, TypeVar,
|
||||
Union,
|
||||
overload,
|
||||
)
|
||||
@@ -98,8 +98,8 @@ if sys.version_info >= (3, 5):
|
||||
def isclosed(self) -> bool: ...
|
||||
def __iter__(self) -> Iterator[bytes]: ...
|
||||
def __enter__(self) -> 'HTTPResponse': ...
|
||||
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: ...
|
||||
else:
|
||||
class HTTPResponse:
|
||||
|
||||
Reference in New Issue
Block a user