File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -197,16 +197,22 @@ def key(self):
197
197
198
198
@property
199
199
def iloc (self ):
200
+ """Cached reference of sorted keys view.
201
+
202
+ Deprecated in version 2 of Sorted Containers. Use
203
+ :func:`SortedDict.keys` instead.
204
+
205
+ """
200
206
warnings .warn (
201
- 'sorted_dict.iloc is deprecated.'
202
- ' Use SortedDict.keys() instead.' ,
203
- DeprecationWarning ,
207
+ 'sorted_dict.iloc is deprecated. Use SortedDict.keys() instead.' ,
208
+ DeprecationWarning ,
204
209
stacklevel = 2 ,
205
210
)
206
211
return self ._iloc
207
212
208
213
209
214
def clear (self ):
215
+
210
216
"""Remove all items from sorted dict.
211
217
212
218
Runtime complexity: `O(n)`
@@ -612,7 +618,7 @@ class SortedKeysView(KeysView, Sequence):
612
618
613
619
614
620
@classmethod
615
- def _from_iterable (self , it ):
621
+ def _from_iterable (cls , it ):
616
622
return SortedSet (it )
617
623
618
624
@@ -661,7 +667,7 @@ class SortedItemsView(ItemsView, Sequence):
661
667
662
668
663
669
@classmethod
664
- def _from_iterable (self , it ):
670
+ def _from_iterable (cls , it ):
665
671
return SortedSet (it )
666
672
667
673
You can’t perform that action at this time.
0 commit comments