Skip to content

Commit 6555523

Browse files
committed
replace None to object for Callable
1 parent 1b63714 commit 6555523

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

stubs/gunicorn/gunicorn/asgi/parser.pyi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ class PythonProtocol:
5454

5555
def __init__(
5656
self,
57-
on_message_begin: Callable[[], None] | None = None,
58-
on_url: Callable[[bytes], None] | None = None,
59-
on_header: Callable[[bytes, bytes], None] | None = None,
57+
on_message_begin: Callable[[], object] | None = None,
58+
on_url: Callable[[bytes], object] | None = None,
59+
on_header: Callable[[bytes, bytes], object] | None = None,
6060
on_headers_complete: Callable[[], bool] | None = None,
61-
on_body: Callable[[bytes], None] | None = None,
62-
on_message_complete: Callable[[], None] | None = None,
61+
on_body: Callable[[bytes], object] | None = None,
62+
on_message_complete: Callable[[], object] | None = None,
6363
limit_request_line: int = 8190,
6464
limit_request_fields: int = 100,
6565
limit_request_field_size: int = 8190,

0 commit comments

Comments
 (0)