isort
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
"""collections_extended contains a few extra basic data structures."""
|
||||
from ._compat import Collection
|
||||
from .bags import bag, frozenbag
|
||||
from .setlists import setlist, frozensetlist
|
||||
from .bijection import bijection
|
||||
from .range_map import RangeMap, MappedRange
|
||||
from .range_map import MappedRange, RangeMap
|
||||
from .setlists import frozensetlist, setlist
|
||||
|
||||
__version__ = '1.0.2'
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ else:
|
||||
|
||||
|
||||
if sys.version_info < (3, 6):
|
||||
from collections import Sized, Iterable, Container
|
||||
from collections import Container, Iterable, Sized
|
||||
|
||||
def _check_methods(C, *methods):
|
||||
mro = C.__mro__
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Bag class definitions."""
|
||||
import heapq
|
||||
from collections import Hashable, MutableSet, Set
|
||||
from operator import itemgetter
|
||||
from collections import Set, MutableSet, Hashable
|
||||
|
||||
from . import _compat
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"""Class definition for bijection."""
|
||||
|
||||
from collections import MutableMapping, Mapping
|
||||
from collections import Mapping, MutableMapping
|
||||
|
||||
|
||||
class bijection(MutableMapping):
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"""RangeMap class definition."""
|
||||
from bisect import bisect_left, bisect_right
|
||||
from collections import namedtuple, Mapping, MappingView, Set
|
||||
|
||||
from collections import Mapping, MappingView, Set, namedtuple
|
||||
|
||||
# Used to mark unmapped ranges
|
||||
_empty = object()
|
||||
|
||||
@@ -1,13 +1,12 @@
|
||||
"""Setlist class definitions."""
|
||||
import random as random_
|
||||
|
||||
from collections import (
|
||||
Sequence,
|
||||
Set,
|
||||
MutableSequence,
|
||||
MutableSet,
|
||||
Hashable,
|
||||
)
|
||||
Hashable,
|
||||
MutableSequence,
|
||||
MutableSet,
|
||||
Sequence,
|
||||
Set,
|
||||
)
|
||||
|
||||
from . import _util
|
||||
|
||||
|
||||
Reference in New Issue
Block a user