Skip to content

Commit 61ecd13

Browse files
committed
chore: make mypy happy
1 parent c6de5b3 commit 61ecd13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unstructured_client/_hooks/custom/clean_server_url_hook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
class CleanServerUrlSDKInitHook(SDKInitHook):
1111
"""Hook fixing common mistakes by users in defining `server_url` in the unstructured-client"""
1212

13-
def clean_server_url(self, base_url) -> str:
13+
def clean_server_url(self, base_url: str) -> str:
1414
"""Fix url scheme and remove the '/general/v0/general' path."""
1515

1616
if not base_url:
17-
return None
17+
return ""
1818
# -- add a url scheme if not present (urllib.parse does not work reliably without it)
1919
if "http" not in base_url:
2020
base_url = "http://" + base_url

0 commit comments

Comments
 (0)