Skip to content

Commit c4841a6

Browse files
authored
Update type hint for idna.encode (#107)
1 parent e005613 commit c4841a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ada_url/ada_adapter.py

+1-1
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)