Skip to content
Merged
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
5 changes: 2 additions & 3 deletions stubs/waitress/waitress/channel.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from _typeshed import FloatInt
from collections.abc import Sequence
from socket import _RetAddress, socket
from threading import Condition, Lock
Expand All @@ -19,7 +18,7 @@ class HTTPChannel(wasyncore.dispatcher):
error_task_class: type[ErrorTask]
parser_class: type[HTTPRequestParser]
request: HTTPRequestParser | None
last_activity: FloatInt
last_activity: float
will_close: bool
close_when_flushed: bool
requests: Sequence[HTTPRequestParser]
Expand All @@ -29,7 +28,7 @@ class HTTPChannel(wasyncore.dispatcher):
server: BaseWSGIServer
adj: Adjustments
outbufs: Sequence[OverflowableBuffer]
creation_time: FloatInt
creation_time: float
sendbuf_len: int
task_lock: Lock
outbuf_lock: Condition
Expand Down
10 changes: 6 additions & 4 deletions stubs/waitress/waitress/wasyncore.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import sys
from _typeshed import FloatInt, ReadableBuffer
from _typeshed import ReadableBuffer
from collections.abc import Mapping
from io import BytesIO
from logging import Logger
Expand All @@ -16,12 +16,14 @@ class ExitNow(Exception): ...
def read(obj: dispatcher) -> None: ...
def write(obj: dispatcher) -> None: ...
def readwrite(obj: dispatcher, flags: int) -> None: ...
def poll(timeout: FloatInt = 0.0, map: _SocketMap | None = None) -> None: ...
def poll2(timeout: FloatInt = 0.0, map: _SocketMap | None = None) -> None: ...
def poll(timeout: float | int = 0.0, map: _SocketMap | None = None) -> None: ...
def poll2(timeout: float | int = 0.0, map: _SocketMap | None = None) -> None: ...

poll3 = poll2

def loop(timeout: FloatInt = 30.0, use_poll: bool = False, map: _SocketMap | None = None, count: int | None = None) -> None: ...
def loop(
timeout: float | int = 30.0, use_poll: bool = False, map: _SocketMap | None = None, count: int | None = None
) -> None: ...
def compact_traceback() -> tuple[tuple[str, str, str], BaseException, BaseException, str]: ...

class dispatcher:
Expand Down
Loading