mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-18 06:19:47 +08:00
Third-party stubs: audit Callable[<parameters>, None] annotations (#8175)
This commit is contained in:
@@ -16,7 +16,7 @@ class _triggerbase:
|
||||
def handle_connect(self) -> None: ...
|
||||
def handle_close(self) -> None: ...
|
||||
def close(self) -> None: ...
|
||||
def pull_trigger(self, thunk: Callable[[None], None] | None = ...) -> None: ...
|
||||
def pull_trigger(self, thunk: Callable[[None], object] | None = ...) -> None: ...
|
||||
def handle_read(self) -> None: ...
|
||||
|
||||
if sys.platform == "linux" or sys.platform == "darwin":
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from collections.abc import Callable, Mapping, Sequence
|
||||
from _typeshed.wsgi import StartResponse
|
||||
from collections.abc import Iterator, Mapping, Sequence
|
||||
from logging import Logger
|
||||
from typing import Any, Match, Pattern
|
||||
|
||||
@@ -43,7 +44,7 @@ class Error:
|
||||
body: str = ...
|
||||
def __init__(self, body: str) -> None: ...
|
||||
def to_response(self) -> tuple[str, Sequence[tuple[str, str]], str]: ...
|
||||
def wsgi_response(self, environ: Any, start_response: Callable[[str, Sequence[tuple[str, str]]], None]) -> str: ...
|
||||
def wsgi_response(self, environ: Any, start_response: StartResponse) -> Iterator[str]: ...
|
||||
|
||||
class BadRequest(Error):
|
||||
code: int = ...
|
||||
|
||||
Reference in New Issue
Block a user