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

documentation: (toy) toy cli interprets by default #1223

Merged
merged 1 commit into from Jul 4, 2023

Conversation

superlopuh
Copy link
Member

No description provided.

@superlopuh superlopuh added the documentation Improvements or additions to documentation label Jul 3, 2023
@superlopuh superlopuh self-assigned this Jul 3, 2023
@codecov
Copy link

codecov bot commented Jul 3, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (08368d7) 88.96% compared to head (42048e3) 88.96%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1223   +/-   ##
=======================================
  Coverage   88.96%   88.96%           
=======================================
  Files         170      172    +2     
  Lines       23244    23331   +87     
  Branches     3529     3540   +11     
=======================================
+ Hits        20678    20756   +78     
- Misses       2003     2009    +6     
- Partials      563      566    +3     

see 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

if target == "toy-infer-shapes":
return

raise ValueError(f"Unknown target option {target}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you doing all the transforms just to fail later on? Wouldn't it make more sense to just fail early?

Copy link
Member Author

Choose a reason for hiding this comment

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

Mostly because modifying the strings in three places is tedious. argparse will already have checked for the options before calling this function, so it's only if for some reason someone calls it from python code somehow, and to make Pyright happy since it doesn't know that there is a closed set of options possible.

@superlopuh superlopuh merged commit f71e490 into main Jul 4, 2023
10 checks passed
@superlopuh superlopuh deleted the sasha/toy/interpret-flag branch July 4, 2023 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants