Skip to content

Distinct operator should work in python generator #4

@priyanka-amarnani-th

Description

@priyanka-amarnani-th

Bug Report

Expected Result:

Given a rune code that uses the distinct operator, the result should be a list containing only distinct elements. The Python generator uses a set to replicate this logic.

Actual Result:

The actual result is a 'unhashable type' error. This happens because the objects in the Python generator derive from BaseDataClass and there is no __hash__() function defined for it.

Possible solutions:

Add a __hash__() function in the definition of BaseDataClass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions