mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Corrections to the asyncio exception stubs (#1623)
Fixes #1622: - Missing attribute `LimitOverrunError.consumed` - Missing attribute `IncompleteReadError.expected` and `.partial` - `partial` argument to `IncompleteReadError` had incorrect type - `expected` argument to `IncompleteReadError` missing `Optional`
This commit is contained in:
committed by
Jelle Zijlstra
parent
666f71fb56
commit
55dbb967ad
@@ -12,9 +12,12 @@ _ClientConnectedCallback = Callable[[StreamReader, StreamWriter], Optional[Await
|
||||
__all__: List[str]
|
||||
|
||||
class IncompleteReadError(EOFError):
|
||||
def __init__(self, partial: str, expected: int) -> None: ...
|
||||
expected = ... # type: Optional[int]
|
||||
partial = ... # type: bytes
|
||||
def __init__(self, partial: bytes, expected: Optional[int]) -> None: ...
|
||||
|
||||
class LimitOverrunError(Exception):
|
||||
consumed = ... # type: int
|
||||
def __init__(self, message: str, consumed: int) -> None: ...
|
||||
|
||||
@coroutines.coroutine
|
||||
|
||||
Reference in New Issue
Block a user