Ahmet Altay reassigned BEAM-3730:

    Assignee:     (was: Ahmet Altay)

> typehints.TypeVariable issues with __hash__
> -------------------------------------------
>                 Key: BEAM-3730
>                 URL: https://issues.apache.org/jira/browse/BEAM-3730
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Luke Zhu
>            Priority: Major
> This class currently does not define a __hash__ function. This defies the 
> assumption made by sets and dicts which contain TypeConstraint objects.
> In Python 3, classes which define ___eq___ also need to explicitly define 
> ___hash___ to be hashable. However, this causes 
> _combiners_test.CombineTest.test_to_list_and_to_dict_ to throw an error in 
> slow_stream.py (adding NoneType and long).
> There are multiple TypeVariable instances with name 'K' or 'V' throughout the 
> codebase. The equality of these instances may possibly cause issues.

This message was sent by Atlassian JIRA

Reply via email to