diff --git a/material/plugins/group/plugin.py b/material/plugins/group/plugin.py index e3f4df85d..b91fda96a 100644 --- a/material/plugins/group/plugin.py +++ b/material/plugins/group/plugin.py @@ -38,6 +38,14 @@ from .config import GroupConfig class GroupPlugin(BasePlugin[GroupConfig]): supports_multiple_instances = True + # Initialize plugin + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + # Initialize object attributes + self.is_serve = False + self.is_dirty = False + # Determine whether we're serving the site def on_startup(self, *, command, dirty): self.is_serve = command == "serve" diff --git a/src/plugins/group/plugin.py b/src/plugins/group/plugin.py index e3f4df85d..b91fda96a 100644 --- a/src/plugins/group/plugin.py +++ b/src/plugins/group/plugin.py @@ -38,6 +38,14 @@ from .config import GroupConfig class GroupPlugin(BasePlugin[GroupConfig]): supports_multiple_instances = True + # Initialize plugin + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + + # Initialize object attributes + self.is_serve = False + self.is_dirty = False + # Determine whether we're serving the site def on_startup(self, *, command, dirty): self.is_serve = command == "serve"