From 752f589bed75cf5b8df0b05a5b21c3f97b471e53 Mon Sep 17 00:00:00 2001 From: Alban Diquet Date: Sun, 5 Mar 2023 17:57:00 +0100 Subject: [PATCH] tweaks --- securedrop/actions/sources_actions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/securedrop/actions/sources_actions.py b/securedrop/actions/sources_actions.py index f232946da53..6d582ec8fe2 100644 --- a/securedrop/actions/sources_actions.py +++ b/securedrop/actions/sources_actions.py @@ -1,4 +1,4 @@ -from abc import abstractmethod +from abc import abstractmethod, ABC from dataclasses import dataclass from datetime import datetime from enum import Enum @@ -9,14 +9,14 @@ import models -@dataclass +@dataclass(frozen=True) class PaginationConfig: # TODO: Validate and reject negative numbers page_size: int page_number: int -class SupportsPagination: +class SupportsPagination(ABC): @abstractmethod def create_query(self):