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

Fix call to parse_args() #17

Merged
merged 1 commit into from
Jan 22, 2024
Merged

Fix call to parse_args() #17

merged 1 commit into from
Jan 22, 2024

Conversation

diazona
Copy link
Contributor

@diazona diazona commented Jan 21, 2024

I ran into an error when running tests and this seems to fix it.

Hope this helps! It's a neat idea for a project.

ArgumentParser.parse_args() expects a list or iterable of arguments to
parse, rather than individual arguments, so unpacking shouldn't be used
when calling that method. This commit removes the unnecessary argument
unpacking operator.
@Eric-Mendes
Copy link
Owner

Eric-Mendes commented Jan 22, 2024

Hey, thanks! I kinda gave up on this project when I discovered ruff was already planning to do something similar, but I still thought it'd be nice to keep it running. Glad you liked it.

@Eric-Mendes Eric-Mendes merged commit 565017b into Eric-Mendes:main Jan 22, 2024
@diazona diazona deleted the patch-1 branch January 23, 2024 08:31
@diazona
Copy link
Contributor Author

diazona commented Jan 23, 2024

Of course 😄 TBH I would probably just use the ruff rule (since I already have ruff enabled in most of my projects) but I like to help fix things when I run across them, and it's interesting to have a Python implementation to look at.

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