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 glob #709

Merged
merged 1 commit into from
Nov 20, 2023
Merged

Fix glob #709

merged 1 commit into from
Nov 20, 2023

Conversation

Pistahh
Copy link
Contributor

@Pistahh Pistahh commented Nov 16, 2023

Fixes #708

glob.glob has many possible arguments but the current wrapping solution doesn't cover all them.

This change directly passes all args (positional and kw) as-is to the wrapped function.

@amoffat
Copy link
Owner

amoffat commented Nov 16, 2023

You might need to suppress the linting on the line that failed, since the glob signature is different over the different python versions

@Pistahh Pistahh force-pushed the fix-glob branch 3 times, most recently from 2aca0fc to 2e60b90 Compare November 20, 2023 16:50
Fixes amoffat#708

glob.glob has many possible arguments but the current wrapping solution
doesn't cover all them.

This change directly passes all args (positional and kw) as-is to the
wrapped function.
@amoffat
Copy link
Owner

amoffat commented Nov 20, 2023

Thanks for the contribution @Pistahh 👍

@amoffat amoffat merged commit 48e7ad8 into amoffat:develop Nov 20, 2023
19 checks passed
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.

glob wrapper breaks glob(.., root_dir=someething)
2 participants