diff --git a/pygal/ghost.py b/pygal/ghost.py index 51db3e2..e5224b4 100644 --- a/pygal/ghost.py +++ b/pygal/ghost.py @@ -44,7 +44,7 @@ class Ghost(object): """Init config""" name = self.__class__.__name__ self.cls = REAL_CHARTS[name] - if config and type(config) == type: + if config and isinstance(config, type): config = config() if config: