Skip to content

RestrictedEvalProvider too restrictive to be useable. #573

@kiranandcode

Description

@kiranandcode

Trying to decode:

def foo(x: list[int]) -> int:
     raise NotHandled

with RestrictedPythonEvalProvider fails with __getitem__ not defined, in particular RestrictedPython disables getitem in our current implementations which means that annotations don't work. This will probably lead many clients to not use RestrictedPython in favour of more unsafe and less restricted UnsafeEvalProvider.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions