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.
This commit is contained in:
Adam Dangoor
2023-03-22 19:20:40 +00:00
committed by GitHub
parent 35a46915e6
commit 19368ab964
+1 -1
View File
@@ -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): ...