Skip to content

Commit

Permalink
cleanup: defer default initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Jan 4, 2025
1 parent 461a0a7 commit b30f3e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mcpx/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,12 @@ class Client:

def __init__(
self,
session_id: str = _default_session_id(),
session_id: str | None = None,
config: ClientConfig | None = None,
log_level: int | None = None,
):
if session_id is None:
session_id = _default_session_id()
if config is None:
config = ClientConfig()
self.session_id = session_id
Expand Down

0 comments on commit b30f3e2

Please sign in to comment.