@@ -361,7 +361,7 @@ def from_arrays(cls, left, right, closed="right", copy=False, dtype=None):
361
361
_interval_shared_docs [
362
362
"from_tuples"
363
363
] = """
364
- Construct an %(klass)s from an array-like of tuples
364
+ Construct an %(klass)s from an array-like of tuples.
365
365
366
366
Parameters
367
367
----------
@@ -854,31 +854,31 @@ def _format_space(self):
854
854
def left (self ):
855
855
"""
856
856
Return the left endpoints of each Interval in the IntervalArray as
857
- an Index
857
+ an Index.
858
858
"""
859
859
return self ._left
860
860
861
861
@property
862
862
def right (self ):
863
863
"""
864
864
Return the right endpoints of each Interval in the IntervalArray as
865
- an Index
865
+ an Index.
866
866
"""
867
867
return self ._right
868
868
869
869
@property
870
870
def closed (self ):
871
871
"""
872
872
Whether the intervals are closed on the left-side, right-side, both or
873
- neither
873
+ neither.
874
874
"""
875
875
return self ._closed
876
876
877
877
_interval_shared_docs [
878
878
"set_closed"
879
879
] = """
880
880
Return an %(klass)s identical to the current one, but closed on the
881
- specified side
881
+ specified side.
882
882
883
883
.. versionadded:: 0.24.0
884
884
@@ -917,7 +917,7 @@ def set_closed(self, closed):
917
917
def length (self ):
918
918
"""
919
919
Return an Index with entries denoting the length of each Interval in
920
- the IntervalArray
920
+ the IntervalArray.
921
921
"""
922
922
try :
923
923
return self .right - self .left
@@ -945,7 +945,7 @@ def mid(self):
945
945
] = """
946
946
Return True if the %(klass)s is non-overlapping (no Intervals share
947
947
points) and is either monotonic increasing or monotonic decreasing,
948
- else False
948
+ else False.
949
949
"""
950
950
# https://github.com/python/mypy/issues/1362
951
951
# Mypy does not support decorated properties
@@ -995,7 +995,7 @@ def __array__(self, dtype=None):
995
995
_interval_shared_docs [
996
996
"to_tuples"
997
997
] = """
998
- Return an %(return_type)s of tuples of the form (left, right)
998
+ Return an %(return_type)s of tuples of the form (left, right).
999
999
1000
1000
Parameters
1001
1001
----------
0 commit comments