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(