From 0b463453ff4419b40998a609249ca1942a00b8af Mon Sep 17 00:00:00 2001 From: Luis Aleixo Date: Fri, 2 Jul 2021 14:41:13 +0200 Subject: [PATCH] bug fix #171 master is running locally again --- cara/monte_carlo/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cara/monte_carlo/models.py b/cara/monte_carlo/models.py index 7348e3be..6f09023e 100644 --- a/cara/monte_carlo/models.py +++ b/cara/monte_carlo/models.py @@ -96,7 +96,7 @@ def _build_mc_model(model: _ModelType) -> typing.Type[MCModelBase[_ModelType]]: cls = dataclasses.make_dataclass( model.__name__, # type: ignore fields, # type: ignore - bases=bases, # type: ignore + bases=tuple(bases), # type: ignore namespace={'_base_cls': model}, # This thing can be mutable - the calculations live on # the wrapped class, not on the MCModelBase.