Skip to content

Operation.Operator (and subclasses) causes issues with typehints. #3487

Description

@LonelyCat124

When we use a typehint of type BinaryOperation.Operator it instead poitnts to Operation.Operator (which is a dummy class).

The options to fix it are:

  1. Use quoted type hint, i.e. "BinaryOperation.Operator" or similar.
  2. (Less certain) Update the Operator subclass to be a defined class, similar to IntrinsicNode.Intrinsic, so it is recognized correctly as a class and not just a value(?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions