lmfit / asteval

minimalistic evaluator of python expression using ast module
https://lmfit.github.io/asteval
MIT License
183 stars 41 forks source link

Add `with`, `set`, `set comprehension`, `dict comprehension` #118

Closed newville closed 1 year ago

newville commented 1 year ago

this adds support for several nodes and cleanups.

f-strings are a work-in-progress.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 92.69% and project coverage change: +0.45 :tada:

Comparison is base (3f8d4a7) 93.45% compared to head (ee51a30) 93.91%.

:exclamation: Current head ee51a30 differs from pull request most recent head 215d90d. Consider uploading reports for the commit 215d90d to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #118 +/- ## ========================================== + Coverage 93.45% 93.91% +0.45% ========================================== Files 4 4 Lines 1498 1626 +128 ========================================== + Hits 1400 1527 +127 - Misses 98 99 +1 ``` | [Impacted Files](https://codecov.io/gh/newville/asteval/pull/118?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Newville) | Coverage Δ | | |---|---|---| | [asteval/asteval.py](https://codecov.io/gh/newville/asteval/pull/118?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Newville#diff-YXN0ZXZhbC9hc3RldmFsLnB5) | `90.75% <87.96%> (+0.41%)` | :arrow_up: | | [asteval/astutils.py](https://codecov.io/gh/newville/asteval/pull/118?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Newville#diff-YXN0ZXZhbC9hc3R1dGlscy5weQ==) | `90.07% <90.78%> (+1.33%)` | :arrow_up: | | [tests/test\_asteval.py](https://codecov.io/gh/newville/asteval/pull/118?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Matt+Newville#diff-dGVzdHMvdGVzdF9hc3RldmFsLnB5) | `97.64% <100.00%> (+0.25%)` | :arrow_up: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.