Skip to content

Fix glob#709

Merged
amoffat merged 1 commit intoamoffat:developfrom
Pistahh:fix-glob
Nov 20, 2023
Merged

Fix glob#709
amoffat merged 1 commit intoamoffat:developfrom
Pistahh:fix-glob

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
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