Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions stdlib/3/typing.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,7 @@ class IO(Iterator[AnyStr], Generic[AnyStr]):
def __enter__(self) -> 'IO[AnyStr]': ...
@abstractmethod
def __exit__(self, t: Optional[Type[BaseException]], value: Optional[BaseException],
# TODO: traceback should be TracebackType but that's defined in types
traceback: Optional[Any]) -> bool: ...
traceback: Optional[TracebackType]) -> bool: ...

class BinaryIO(IO[bytes]):
# TODO readinto
Expand Down
5 changes: 3 additions & 2 deletions stdlib/3/urllib/response.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# private module, we only expose what's needed

from typing import BinaryIO, Mapping, Optional
from io import BufferedRandom
from typing import Mapping, Optional
from types import TracebackType

class addinfourl(BinaryIO):
class addinfourl(BufferedRandom):
headers = ... # type: Mapping[str, str]
url = ... # type: str
code = ... # type: int
Expand Down