This repository was archived by the owner on Feb 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,10 @@ def from_environment(
3737 loop = asyncio .new_event_loop ()
3838 asyncio .set_event_loop (loop )
3939
40- config : ClientConfig = ConfigLoader ("." ).load_client_config (defaults )
4140 for opt_function in opts_functions :
42- opt_function (config )
41+ opt_function (defaults )
4342
44- return cls .from_config (config , debug )
43+ return cls .from_config (defaults , debug )
4544
4645 @classmethod
4746 def from_config (
Original file line number Diff line number Diff line change 1616from hatchet_sdk .features .cron import CronClient
1717from hatchet_sdk .features .scheduled import ScheduledClient
1818from hatchet_sdk .labels import DesiredWorkerLabel
19- from hatchet_sdk .loader import ClientConfig , ConfigLoader
19+ from hatchet_sdk .loader import ClientConfig
2020from hatchet_sdk .rate_limit import RateLimit
2121from hatchet_sdk .v2 .callable import HatchetCallable
2222
@@ -187,12 +187,8 @@ class HatchetRest:
187187 rest (RestApi): Interface for REST API operations.
188188 """
189189
190- rest : RestApi
191-
192190 def __init__ (self , config : ClientConfig = ClientConfig ()):
193- _config : ClientConfig = ConfigLoader ("." ).load_client_config (config )
194- self .rest = RestApi (_config .server_url , _config .token , _config .tenant_id )
195-
191+ self .rest = RestApi (config .server_url , config .token , config .tenant_id )
196192
197193class Hatchet :
198194 """
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ files = [
9393 " hatchet_sdk/clients/rest/models/workflow_run.py" ,
9494 " hatchet_sdk/context/worker_context.py" ,
9595 " hatchet_sdk/clients/dispatcher/dispatcher.py" ,
96+ " hatchet_sdk/loader.py" ,
9697]
9798follow_imports = " silent"
9899disable_error_code = [" unused-coroutine" ]
You can’t perform that action at this time.
0 commit comments