]> git.ipfire.org Git - thirdparty/starlette.git/commitdiff
feat: add type annotation to Request.path_params (#1404)
authorAdrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>
Tue, 25 Jan 2022 13:44:39 +0000 (07:44 -0600)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 13:44:39 +0000 (07:44 -0600)
starlette/requests.py

index a33367e1df9afb17277042205f21a368634395ab..bdfcfcbc126cd081d23aef3f9f03298f6e5063c0 100644 (file)
@@ -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