From d774af71ef87a84d36a6fd75bab66e5c3e7d7ffa Mon Sep 17 00:00:00 2001 From: duker33 Date: Wed, 13 Feb 2019 14:10:06 +0300 Subject: [PATCH] #240 Merge fix --- pages/newcontext/base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/newcontext/base.py b/pages/newcontext/base.py index 9a6ca06..b33170d 100644 --- a/pages/newcontext/base.py +++ b/pages/newcontext/base.py @@ -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(