WrongReturnTypeForUnion

The Union type cannot be resolved because it’s not a field.

Constructor:

Signature:

def __init__(self, field_name: str, result_type: str) -> None:
...

Parameters:

  1. field_name:

    Type
    str
  2. result_type:

    Type
    str