Skip to content

Use keyword-only arguments for the pytest helpers functions #176

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

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

asmeurer
Copy link
Member

This makes the inscrutable helper function calls more readable, and fixes at least one instance where the arguments were called in the wrong order.

This also changes **kw to kw={} for the function keyword arguments, so there is no ambiguity between function keyword arguments and arguments to the helper function.

I've checked the codebase with pylint to make sure I didn't miss anything here, but if you know of any other tools that can check this we can run those as well.

This makes the inscrutable helper function calls more readable, and fixes at
least one instance where the arguments were called in the wrong order.

This also changes **kw to kw={} for the function keyword arguments, so there
is no ambiguity between function keyword arguments and arguments to the helper
function.
Copy link
Member

@honno honno left a comment

Choose a reason for hiding this comment

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

Thanks makes sense, I really should of done this in the first place—non-defaulted kw-only args have been an awesome revelation for me!

(Generally I'm not a fan of lines exceeding ~100 columns, but if we're not going to introducing a formatter than it's just bikeshedding to address.)

@honno honno merged commit af2e299 into data-apis:master Mar 28, 2023
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