[ 
https://issues.apache.org/jira/browse/BEAM-3730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17546802#comment-17546802
 ] 

Kenneth Knowles commented on BEAM-3730:
---------------------------------------

This issue has been migrated to https://github.com/apache/beam/issues/18633

> 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: P3
>
> 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
(v8.20.7#820007)

Reply via email to