From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Tue, 25 Jan 2022 13:44:39 +0000 (-0600) Subject: feat: add type annotation to Request.path_params (#1404) X-Git-Tag: 0.19.0~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efd5bcd35b250de335de4c775044ff844dd89f15;p=thirdparty%2Fstarlette.git feat: add type annotation to Request.path_params (#1404) --- diff --git a/starlette/requests.py b/starlette/requests.py index a33367e1..bdfcfcbc 100644 --- a/starlette/requests.py +++ b/starlette/requests.py @@ -119,7 +119,7 @@ class HTTPConnection(Mapping): return self._query_params @property - def path_params(self) -> dict: + def path_params(self) -> typing.Dict[str, typing.Any]: return self.scope.get("path_params", {}) @property