Use Mapping for local Python namespace parameters (#12705)

This commit is contained in:
Victorien
2024-09-30 11:26:41 +02:00
committed by GitHub
parent 6990bb64a9
commit db265afec5
5 changed files with 16 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
from _typeshed import Unused
from _typeshed.wsgi import WSGIApplication
from collections.abc import Callable, Iterable
from collections.abc import Callable, Iterable, Mapping
from typing import Any, Literal
from waitress.adjustments import _AdjustmentsParams
@@ -15,4 +15,4 @@ def serve(
**kw: _AdjustmentsParams,
) -> None: ...
def serve_paste(app: WSGIApplication, global_conf: Unused, **kw: _AdjustmentsParams) -> Literal[0]: ...
def profile(cmd: str, globals: dict[str, Any], locals: dict[str, Any], sort_order: Iterable[str], callers: bool) -> None: ...
def profile(cmd: str, globals: dict[str, Any], locals: Mapping[str, Any], sort_order: Iterable[str], callers: bool) -> None: ...