@@ -13,7 +13,6 @@ def mergeable(a, b):
1313 :param b: an atomic interval.
1414 :return: True if mergeable, False otherwise.
1515 """
16- ...
1716
1817class Interval :
1918 """
@@ -32,7 +31,6 @@ class Interval:
3231
3332 :param intervals: zero, one or more intervals.
3433 """
35- ...
3634
3735 @classmethod
3836 def from_atomic (cls , left , lower , upper , right ): # -> Self:
@@ -44,50 +42,43 @@ class Interval:
4442 :param upper: value of the upper bound.
4543 :param right: either CLOSED or OPEN.
4644 """
47- ...
4845
4946 @property
5047 def left (self ): # -> Literal[Bound.OPEN]:
5148 """
5249 Lowest left boundary is either CLOSED or OPEN.
5350 """
54- ...
5551
5652 @property
5753 def lower (self ): # -> _PInf:
5854 """
5955 Lowest lower bound value.
6056 """
61- ...
6257
6358 @property
6459 def upper (self ): # -> _NInf:
6560 """
6661 Highest upper bound value.
6762 """
68- ...
6963
7064 @property
7165 def right (self ): # -> Literal[Bound.OPEN]:
7266 """
7367 Highest right boundary is either CLOSED or OPEN.
7468 """
75- ...
7669
7770 @property
7871 def empty (self ): # -> bool:
7972 """
8073 True if interval is empty, False otherwise.
8174 """
82- ...
8375
8476 @property
8577 def atomic (self ): # -> bool:
8678 """
8779 True if this interval is atomic, False otherwise.
8880 An interval is atomic if it is empty or composed of a single interval.
8981 """
90- ...
9182
9283 @property
9384 def enclosure (self ): # -> Self:
@@ -97,7 +88,6 @@ class Interval:
9788
9889 :return: an Interval instance.
9990 """
100- ...
10191
10292 def replace (
10393 self , left = ..., lower = ..., upper = ..., right = ..., * , ignore_inf = ...
@@ -121,7 +111,6 @@ class Interval:
121111 is True).
122112 :return: an Interval instance
123113 """
124- ...
125114
126115 def apply (self , func ): # -> Self:
127116 """
@@ -137,7 +126,6 @@ class Interval:
137126 :param func: function to apply on each underlying atomic interval.
138127 :return: an Interval instance.
139128 """
140- ...
141129
142130 def adjacent (self , other ):
143131 """
@@ -154,7 +142,6 @@ class Interval:
154142 :param other: an interval.
155143 :return: True if intervals are adjacent, False otherwise.
156144 """
157- ...
158145
159146 def overlaps (self , other ): # -> bool:
160147 """
@@ -163,7 +150,6 @@ class Interval:
163150 :param other: an interval.
164151 :return: True if intervals overlap, False otherwise.
165152 """
166- ...
167153
168154 def intersection (self , other ):
169155 """
@@ -172,7 +158,6 @@ class Interval:
172158 :param other: an interval.
173159 :return: the intersection of the intervals.
174160 """
175- ...
176161
177162 def union (self , other ):
178163 """
@@ -181,7 +166,6 @@ class Interval:
181166 :param other: an interval.
182167 :return: the union of the intervals.
183168 """
184- ...
185169
186170 def contains (self , item ): # -> bool:
187171 """
@@ -191,15 +175,13 @@ class Interval:
191175 :param item: an interval or any arbitrary comparable value.
192176 :return: True if given item is contained, False otherwise.
193177 """
194- ...
195178
196179 def complement (self ): # -> Interval:
197180 """
198181 Return the complement of this interval.
199182
200183 :return: the complement of this interval.
201184 """
202- ...
203185
204186 def difference (self , other ):
205187 """
@@ -208,7 +190,6 @@ class Interval:
208190 :param other: an interval.
209191 :return: the difference of the intervals.
210192 """
211- ...
212193
213194 def __getattr__ (self , name ): # -> None:
214195 ...
0 commit comments