pylint-errors

W0123 (eval-used)

:x: Problematic code:

eval('[1, 2, 3]')

:heavy_check_mark: Correct code:

from ast import literal_eval
literal_eval('[1, 2, 3]')

Rationale:

Used when you use the eval function, to discourage its usage. Consider using ast.literal_eval for safely evaluating strings containing Python expressions from untrusted sources.