Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type annotation for benchmarks/ #7289

Merged
merged 10 commits into from
Jun 20, 2024
Merged

Type annotation for benchmarks/ #7289

merged 10 commits into from
Jun 20, 2024

Conversation

zpcore
Copy link
Collaborator

@zpcore zpcore commented Jun 15, 2024

Type annotations for benchmarks/.

Also relocated some functions due to circular import.

@zpcore zpcore force-pushed the piz/clean_doc branch 2 times, most recently from a84f2b2 to ba4603d Compare June 16, 2024 07:05
@zpcore zpcore marked this pull request as ready for review June 16, 2024 07:08
@zpcore zpcore requested a review from ysiraichi June 16, 2024 07:44
Copy link
Collaborator

@ysiraichi ysiraichi left a comment

Choose a reason for hiding this comment

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

Nice PR. I have pointed out a few places where type hints are still missing.
One additional comment: I think it would be better to update the PR title, so that it represents what you are doing here. It doesn't really fixes any document, does it?

@zpcore zpcore changed the title doc fix Type annotation for benchmarks/ Jun 17, 2024
@zpcore zpcore requested a review from vanbasten23 June 18, 2024 01:07
@zpcore zpcore enabled auto-merge (squash) June 18, 2024 01:07
@vanbasten23
Copy link
Collaborator

Mostly LGTM with minor comments. Thanks!

@ysiraichi
Copy link
Collaborator

Are we also going to start using mypy?

@zpcore
Copy link
Collaborator Author

zpcore commented Jun 18, 2024

mypy

@will-cromar and @JackCaoG to see if we have such plan.

@@ -70,7 +72,9 @@ def _expand_config_choices(self, config_choices):
configs = new_configs
return configs

def _is_available(self, experiment_config):
def _is_available(self,
experiment_config: List[Dict[str,
Copy link
Collaborator

Choose a reason for hiding this comment

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

lol, our benchmark script is complicated

@zpcore zpcore merged commit 98dd99e into master Jun 20, 2024
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants