Skip to content

Conversation

@pavoljuhas
Copy link
Contributor

  • replace setParseAction --> set_parse_action
  • replace setResultsName --> set_results_name
  • replace parseString --> parse_string

Fixes pyparsing-related deprecation warnings that show for
python -Wall -c "import tunits"

- replace `setParseAction` --> `set_parse_action`
- replace `setResultsName` --> `set_results_name`
- replace `parseString` --> `parse_string`

Fixes pyparsing-related deprecation warnings that show for
python -Wall -c "import tunits"
Make it explicit the argument is optional.
Copy link
Collaborator

@NoureldinYosri NoureldinYosri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @pavoljuhas

@NoureldinYosri NoureldinYosri merged commit 6acfa57 into quantumlib:main Jan 5, 2026
7 checks passed
@pavoljuhas pavoljuhas deleted the replace-deprecated-pyparsing-functions branch January 6, 2026 00:22
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.

2 participants