Skip to content

Apply search type exclusions to the current object - #629

Open
jakezwang wants to merge 1 commit into
qlustered:devfrom
jakezwang:fix/search-excluded-object-types
Open

jakezwang wants to merge 1 commit into
qlustered:devfrom
jakezwang:fix/search-excluded-object-types

Conversation

@jakezwang

Copy link
Copy Markdown

DeepSearch checks the search term's type when deciding whether to skip the current object. As a result, DeepSearch([1], 1, exclude_types=[list]) still finds root[0], and excluded objects nested in dictionaries are searched too.

Pass the current object to the existing exclusion check. Add regressions for excluded root containers and dictionary values, including custom objects and an unexcluded sibling.

Validation: all 69 search tests passed with 100% coverage of search.py; Pyright, lint, and wheel/sdist checks passed. The full suite with slow tests had 1,315 passes and 8 skips. One existing macOS RLIMIT_AS test failed identically on the unchanged base before reaching package code.

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.

1 participant