From 0519a1d1c63b6c305e8ea6820780a33f5c14831f Mon Sep 17 00:00:00 2001 From: Marc Bresson Date: Mon, 16 Dec 2024 09:58:06 +0100 Subject: [PATCH] TYP: add return type for Protocol class used for duck typing --- httpx/_urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpx/_urls.py b/httpx/_urls.py index 6602bf7745..64c264cc77 100644 --- a/httpx/_urls.py +++ b/httpx/_urls.py @@ -13,7 +13,7 @@ class HasDunderStr(typing.Protocol): - def __str__(self): ... + def __str__(self) -> str: ... class URL: