Skip to content

Commit 108aac5

Browse files
authored
Update type hint for idna.encode
1 parent e005613 commit 108aac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ada_url/ada_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ def decode(s: Union[str, bytes]) -> str:
743743
return _get_str(data)
744744

745745
@staticmethod
746-
def encode(s: Union[str, bytes]) -> str:
746+
def encode(s: Union[str, bytes]) -> bytes:
747747
if isinstance(s, str):
748748
s = s.encode()
749749

0 commit comments

Comments
 (0)