Skip to content

Commit

Permalink
TYP: add return type for Protocol class used for duck typing
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBresson committed Dec 16, 2024
1 parent 34a42e8 commit 0519a1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpx/_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class HasDunderStr(typing.Protocol):
def __str__(self): ...
def __str__(self) -> str: ...


class URL:
Expand Down

0 comments on commit 0519a1d

Please sign in to comment.