Skip to content

Commit 008fa62

Browse files
committed
Fixes for pylint
1 parent 2a00449 commit 008fa62

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

sortedcontainers/sorteddict.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)