[
https://issues.apache.org/jira/browse/BEAM-3730?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Beam JIRA Bot updated BEAM-3730:
--------------------------------
Labels: (was: stale-P2)
> 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.3.4#803005)