alexmojaki / pure_eval

Safely evaluate AST nodes without side effects
MIT License
42 stars 16 forks source link

0.2.2: SyntaxWarning: list indices must be integers or slices, not tuple #14

Closed mtelka closed 4 months ago

mtelka commented 1 year ago

Testing reports the following warning with Python 3.9.16:

tests/test_core.py::test_cannot_subscript[[1][:,:]]
  <string>:1: SyntaxWarning: list indices must be integers or slices, not tuple; perhaps you missed a comma?

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
alexmojaki commented 4 months ago

Fixed in https://github.com/alexmojaki/pure_eval/commit/b02b4046e809c04c920fad4ddc8e3f838c59af16