Skip to content

Commit 77843b3

Browse files
authored
Update sdk.py
add back human decorators
1 parent 625c545 commit 77843b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/unstructured_client/sdk.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@
66
from typing import Callable, Dict, Union
77
from unstructured_client import utils
88
from unstructured_client.models import shared
9+
from unstructured_client.utils._decorators import clean_server_url # human code
910

1011
class UnstructuredClient:
1112
r"""Unstructured Pipeline API: Partition documents with the Unstructured library"""
1213
general: General
1314

1415
sdk_configuration: SDKConfiguration
1516

17+
@clean_server_url # human code
1618
def __init__(self,
1719
api_key_auth: Union[str, Callable[[], str]],
1820
server: str = None,
@@ -55,4 +57,4 @@ def security():
5557

5658
def _init_sdks(self):
5759
self.general = General(self.sdk_configuration)
58-
60+

0 commit comments

Comments
 (0)