Commit c81db15a authored by Duncan Macleod's avatar Duncan Macleod

Merge branch 'revert-f3cf8f30' into 'master'

Revert "Merge branch 'python-segment-contains' into 'master'"

See merge request !7
parents 8af238a7 8277c96b
Pipeline #24301 passed with stages
in 8 minutes and 51 seconds
......@@ -454,7 +454,7 @@ class segment(tuple):
a, b = other
except (ValueError, TypeError):
except ValueError:
return self[0] <= other < self[1]
return (self[0] <= a) and (self[1] >= b)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment