Skip to content

Commit

Permalink
#240 Merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
duker33 committed Feb 14, 2019
1 parent 8513659 commit f89dd90
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/newcontext/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ def context(self) -> typing.Dict[str, typing.Any]:

class Contexts(Context):

def __init__(self, *contexts: typing.List[Context]):
self.contexts = contexts
# use context as list, not as args pack (`*context`)
# to move attention on homogeneous nature of args
def __init__(self, contexts: typing.List[Context]):
self.contexts = contexts or []

def context(self):
return dict(collections.ChainMap(
Expand Down

0 comments on commit f89dd90

Please sign in to comment.