Skip to content

Upgrade pyparsing to v3.3.3 - #1606

Closed
danlamanna wants to merge 2 commits into
masterfrom
upgrade-pyparsing
Closed

danlamanna wants to merge 2 commits into
masterfrom
upgrade-pyparsing

Conversation

@danlamanna

Copy link
Copy Markdown
Member

With pyparsing 3.3.3, an OR in parentheses inside an AND broke both search parsers, for example diagnosis_1:foobar OR (diagnosis_1:foobaz AND (diagnosis_1:foo* OR age_approx:50)). The ES parser put a list inside a bool.filter, and the Django parser raised a TypeError.

The OR parse actions changed toks[0] in place. They now return the result, which works on 3.3.2 and 3.3.3. This also adds a Django parser case with nested parentheses.

Split out of #1587.

The OR parse actions replaced toks[0] in place and returned None.
With pyparsing 3.3.3, an OR in parentheses inside an AND reached the
AND action still wrapped in a ParseResults. The ES parser then put a
list inside a bool filter, and the Django parser raised a TypeError.
@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: cbeea91b-3351-41db-91b1-2f5e2c63c993

📥 Commits

Reviewing files that changed from the base of the PR and between ff5b086 and 434f8be.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (3)
  • isic/core/dsl.py
  • isic/core/tests/test_dsl.py
  • pyproject.toml
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@danlamanna

Copy link
Copy Markdown
Member Author

Superseded by #1607, which skips pyparsing 3.3.3 until the upstream regression is fixed.

@danlamanna danlamanna closed this Sep 30, 2026
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