File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,16 +197,22 @@ def key(self):
197197
198198 @property
199199 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+ """
200206 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 ,
204209 stacklevel = 2 ,
205210 )
206211 return self ._iloc
207212
208213
209214 def clear (self ):
215+
210216 """Remove all items from sorted dict.
211217
212218 Runtime complexity: `O(n)`
@@ -612,7 +618,7 @@ class SortedKeysView(KeysView, Sequence):
612618
613619
614620 @classmethod
615- def _from_iterable (self , it ):
621+ def _from_iterable (cls , it ):
616622 return SortedSet (it )
617623
618624
@@ -661,7 +667,7 @@ class SortedItemsView(ItemsView, Sequence):
661667
662668
663669 @classmethod
664- def _from_iterable (self , it ):
670+ def _from_iterable (cls , it ):
665671 return SortedSet (it )
666672
667673
You can’t perform that action at this time.
0 commit comments