From 845aa21041c9f47bff7d37600eb5c4c3f12bab2a Mon Sep 17 00:00:00 2001 From: Kipp Cannon Date: Fri, 24 Jul 2020 07:31:15 +0900 Subject: [PATCH] word-wrap a comment --- ligo/segments/__init__.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ligo/segments/__init__.py b/ligo/segments/__init__.py index c671929..3efde12 100644 --- a/ligo/segments/__init__.py +++ b/ligo/segments/__init__.py @@ -382,14 +382,16 @@ class segment(tuple): return self[0] >= other # - # From : + # From + # : # - # "if [a class] defines __eq__() but not __hash__(), its instances will not - # be usable as items in hashable collections... If a class that overrides - # __eq__() needs to retain the implementation of __hash__() from a parent - # class, the interpreter must be told this explicitly by setting __hash__ = - # .__hash__." + # "if [a class] defines __eq__() but not __hash__(), its instances + # will not be usable as items in hashable collections... If a class + # that overrides __eq__() needs to retain the implementation of + # __hash__() from a parent class, the interpreter must be told this + # explicitly by setting __hash__ = .__hash__." # + __hash__ = tuple.__hash__ # some arithmetic operations that (mostly) make sense for segments -- GitLab