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.
Trying to decode:
with RestrictedPythonEvalProvider fails with
__getitem__not defined, in particularRestrictedPythondisables getitem in our current implementations which means that annotations don't work. This will probably lead many clients to not useRestrictedPythonin favour of more unsafe and less restrictedUnsafeEvalProvider.