From e9d628cbd51419bad2792dd279541f1bdd45e2a1 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Mon, 6 Apr 2015 00:00:31 -0700 Subject: [PATCH] IndexedSet docs finalized (not perfect tho, thx autodoc you frustratin crap, no one said render the dunders) --- boltons/setutils.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/boltons/setutils.py b/boltons/setutils.py index dabdb05..d0514b0 100644 --- a/boltons/setutils.py +++ b/boltons/setutils.py @@ -40,7 +40,10 @@ class IndexedSet(MutableSet): """``IndexedSet`` is a :class:`collections.MutableSet` that maintains insertion order and uniqueness of inserted elements. It's a hybrid type, mostly like an OrderedSet, but also :class:`list`-like, in - that it supports indexing and slicing: + that it supports indexing and slicing. + + Args: + other (iterable): An optional iterable used to initialize the set. >>> x = IndexedSet(range(4) + range(8)) >>> x @@ -75,10 +78,6 @@ class IndexedSet(MutableSet): Otherwise, the API strives to be as complete a union of the :class:`list` and :class:`set` APIs as possible. - - Args: - other (iterable): An optional iterable used to initialize the set. - """ def __init__(self, other=None): self.item_index_map = dict()