diff --git a/sdks/python/apache_beam/coders/coders.py b/sdks/python/apache_beam/cod similarity index 99% rename from sdks/python/apache_beam/coders/coders.py rename to sdks/python/apache_beam/cod index b6aa40d6c82f..e9ba160c835b 100644 --- a/sdks/python/apache_beam/coders/coders.py +++ b/sdks/python/apache_beam/cod @@ -220,11 +220,10 @@ def __repr__(self): def __eq__(self, other): return (self.__class__ == other.__class__ and self._dict_without_impl() == other._dict_without_impl()) + # pylint: enable=protected-access def __hash__(self): - return hash((self.__class__,) + - tuple(sorted(self._dict_without_impl().items()))) - # pylint: enable=protected-access + return hash(type(self)) _known_urns = {}