From 108aac5409c4fecc101b94fcea2ac43f41da7247 Mon Sep 17 00:00:00 2001
From: Bo Bayles <bbayles@gmail.com>
Date: Wed, 12 Mar 2025 09:31:35 -0500
Subject: [PATCH] Update type hint for idna.encode

---
 ada_url/ada_adapter.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ada_url/ada_adapter.py b/ada_url/ada_adapter.py
index 462e3cd..0139bcc 100644
--- a/ada_url/ada_adapter.py
+++ b/ada_url/ada_adapter.py
@@ -743,7 +743,7 @@ def decode(s: Union[str, bytes]) -> str:
         return _get_str(data)
 
     @staticmethod
-    def encode(s: Union[str, bytes]) -> str:
+    def encode(s: Union[str, bytes]) -> bytes:
         if isinstance(s, str):
             s = s.encode()