Skip to content

FIX(py/client): align async / sync client methods, remove default values in test seed, etc#166

Open
hon-gyu wants to merge 6 commits into
mainfrom
hy/260619-fixes
Open

FIX(py/client): align async / sync client methods, remove default values in test seed, etc#166
hon-gyu wants to merge 6 commits into
mainfrom
hy/260619-fixes

Conversation

@hon-gyu

@hon-gyu hon-gyu commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Minor fixes

Comment thread src/py/client/_async.py Outdated
seed: Optional[int] = None,
timeout: Optional[float] = None,
) -> simple_api_pb2.TestRes:
seed = seed or 0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should not set the default seed in the client package, but rely on the server side default. I think the seed is currently not optional, but it's fine to make it optional.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. The async client changes here are purely to mirror sync client (which sets default seed if not provided). I've removed the default-setting behavior in both clients. cecd690

@hon-gyu hon-gyu changed the title hy/260619 fixes FIX(py/client): align async / sync client methods, remove default values in test seed, etc Jun 22, 2026
@hon-gyu hon-gyu marked this pull request as ready for review June 22, 2026 14:53
@hon-gyu hon-gyu requested a review from wintersteiger June 22, 2026 14:54

@wintersteiger wintersteiger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants