Skip to content

Commit

Permalink
Resolve circular imports.
Browse files Browse the repository at this point in the history
Closes #11
  • Loading branch information
dgilland committed Jul 28, 2014
1 parent 5fc5c8e commit f7dbc14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pydash/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import random

from .arrays import flatten
from .utilities import matches, property_, callback as make_callback
from .utils import iter_callback, iter_

Expand All @@ -18,9 +19,6 @@ def at(collection, *indexes): # pylint: disable=invalid-name
:param mixed indexes: the indexes of `collection` to retrieve, specified as
individual indexes or arrays of indexes
"""
# FIXME: Resolve circular imports
from .arrays import flatten

indexes = flatten(indexes)
return [collection[i] for i in indexes]

Expand Down

0 comments on commit f7dbc14

Please sign in to comment.