Skip to content

Make ArrayValue not callable #728

Description

@JamesWrigley

Some Python libraries can accept either a function or array, and distinguish between the two with isinstance(x, typing.Callable). Unfortunately this is always the case for ArrayValue:
Image

Which means that libraries may try to treat the array as a function. Would it be possible to fix that? I'd guess that ArrayValue would need to stop inheriting from AnyValue, which defines __call__().

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions