Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackevansevo committed Apr 23, 2017
1 parent 5e88a34 commit c966c40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions basic_utils/core.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import operator
import os

from itertools import chain
from collections import defaultdict
from functools import reduce
from typing import List

from .primitives import sentinel
from basic_utils.primitives import sentinel


__all__ = [
Expand Down Expand Up @@ -59,7 +60,7 @@ def recursive_default_dict():

def rgetattr(obj: object, attrs: str, default=sentinel):
"""Get a nested attribute within an object"""
return reduce(getattr, [obj] + attrs.split('.'))
return reduce(getattr, chain([obj], attrs.split('.')))


def rsetattr(obj, attr, val):
Expand Down
2 changes: 2 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[mypy]
ignore-missing-imports=True

0 comments on commit c966c40

Please sign in to comment.