Skip to content

fix(var-sample): argparse bool flag --trick does not parse (+1 more) - #7

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/var-sample-assorted-99a9d4cb
Open

fix(var-sample): argparse bool flag --trick does not parse (+1 more)#7
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/var-sample-assorted-99a9d4cb

Conversation

@andrewwhitecdw

@andrewwhitecdw andrewwhitecdw commented Jul 27, 2026

Copy link
Copy Markdown

Small fixes in VAR_sample.py:

fix: argparse bool flag --trick does not parse correctly

Fix: Replace:

parser.add_argument("--trick", type=bool, default=False)

with:

parser.add_argument("--trick", action="store_true")

fix: argparse type=bool parses any string as True

Fix: Replace:

parser.add_argument("--trick", type=bool, default=False)

with:

parser.add_argument("--trick", action="store_true")

Files changed

  • VAR_sample.py

@andrewwhitecdw
andrewwhitecdw marked this pull request as ready for review July 27, 2026 21:31
@andrewwhitecdw

Copy link
Copy Markdown
Author

Closing this sweep-generated PR: sole commit is missing a valid Signed-off-by trailer. It does not meet the sweep requirements (single signed-off commit).

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.

1 participant