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

Expression parsing #15

Closed
perica22 opened this issue Mar 4, 2025 · 1 comment
Closed

Expression parsing #15

perica22 opened this issue Mar 4, 2025 · 1 comment

Comments

@perica22
Copy link

perica22 commented Mar 4, 2025

Hello,

I attempted to use Parser to evaluate the expression, but I encountered an error:

parser.Parser().parse("$number(findings) < 3")  
>>> TypeError: can only concatenate str (not 'NoneType') to str  

Could someone advise whether I'm using it incorrectly or if there's an issue with it?

@rayokota
Copy link
Owner

The parser is for internal use. Here the repl is complaining because the result of parser.Parser().parse("$number(findings) < 3") is not printable

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

No branches or pull requests

2 participants