Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit ff2ed76

Browse files
committed
correct type hints for config init
1 parent 5762e75 commit ff2ed76

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

hatchet_sdk/loader.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,19 @@ def __init__(
2525

2626
class ClientConfig:
2727
logInterceptor: Logger
28+
fallback_host_port = "localhost:7070"
29+
fallback_server_url = "https://app.dev.hatchet-tools.com"
2830

2931
def __init__(
3032
self,
31-
tenant_id: str = None,
32-
tls_config: ClientTLSConfig = None,
33-
token: str = None,
34-
host_port: str = "localhost:7070",
35-
server_url: str = "https://app.dev.hatchet-tools.com",
33+
tenant_id: str | None = None,
34+
tls_config: ClientTLSConfig | None = None,
35+
token: str | None = None,
36+
host_port: str | None = None,
37+
server_url: str | None = None,
3638
namespace: str = None,
37-
listener_v2_timeout: int = None,
38-
logger: Logger = None,
39+
listener_v2_timeout: int | None = None,
40+
logger: Logger | None = None,
3941
grpc_max_recv_message_length: int = 4 * 1024 * 1024, # 4MB
4042
grpc_max_send_message_length: int = 4 * 1024 * 1024, # 4MB
4143
):

0 commit comments

Comments
 (0)