diff --git a/src/wagtail_personalisation/adapters.py b/src/wagtail_personalisation/adapters.py index f4253cc..3933f38 100644 --- a/src/wagtail_personalisation/adapters.py +++ b/src/wagtail_personalisation/adapters.py @@ -9,7 +9,7 @@ from wagtail_personalisation.rules import AbstractBaseRule from wagtail_personalisation.utils import create_segment_dictionary -class BaseSegmentsAdapter(object): +class BaseSegmentsAdapter: """Base segments adapter.""" def __init__(self, request): diff --git a/src/wagtail_personalisation/models.py b/src/wagtail_personalisation/models.py index d88a1fd..8901dbd 100644 --- a/src/wagtail_personalisation/models.py +++ b/src/wagtail_personalisation/models.py @@ -302,7 +302,7 @@ class PersonalisablePageMetadata(ClusterableModel): return Segment.objects.none() -class PersonalisablePageMixin(object): +class PersonalisablePageMixin: """The personalisable page model. Allows creation of variants with linked segments.