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

Replace all filtering parameters with one parameter that returns an enum #5

Open
jwodder opened this issue Apr 27, 2024 · 0 comments
Open
Labels
breaking change Introduction of an incompatible API change c:filtering under consideration Dev has not yet decided whether or how to implement

Comments

@jwodder
Copy link
Owner

jwodder commented Apr 27, 2024

(Note: All new identifiers in this issue are working titles only.)

Eliminate iterpath()'s filter* and exclude* arguments and replace them with a single argument select: Callable[[os.DirEntry], Operation] | None = None. Operation is here an enum with the following variants:

Problem: How would having more than two return values work with applying logical operators to selectors?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Introduction of an incompatible API change c:filtering under consideration Dev has not yet decided whether or how to implement
Projects
None yet
Development

No branches or pull requests

1 participant