From 19368ab964183604829327b7d1f6a14fbbc59574 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Wed, 22 Mar 2023 19:20:40 +0000 Subject: [PATCH] Add type to requests.models.RequestEncodingMixin.path_url (#9923) We can see at https://github.com/psf/requests/blob/7f694b79e114c06fac5ec06019cada5a61e5570f/requests/models.py#L104 that this always returns a string. --- stubs/requests/requests/models.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/requests/requests/models.pyi b/stubs/requests/requests/models.pyi index 9cdb2443f..a2f4f15ea 100644 --- a/stubs/requests/requests/models.pyi +++ b/stubs/requests/requests/models.pyi @@ -48,7 +48,7 @@ ITER_CHUNK_SIZE: Any class RequestEncodingMixin: @property - def path_url(self): ... + def path_url(self) -> str: ... class RequestHooksMixin: def register_hook(self, event, hook): ...