diff --git a/dojo/api_v2/serializers.py b/dojo/api_v2/serializers.py index 8f270b8cdd..c9f73c97ce 100644 --- a/dojo/api_v2/serializers.py +++ b/dojo/api_v2/serializers.py @@ -1,3 +1,4 @@ +import collections import json import logging import re @@ -280,10 +281,10 @@ def _pop_tags(self, validated_data): return (to_be_tagged, validated_data) -class RequestResponseDict(list): +class RequestResponseDict(collections.UserList): def __init__(self, *args, **kwargs): pretty_print = kwargs.pop("pretty_print", True) - list.__init__(self, *args, **kwargs) + collections.UserList.__init__(self, *args, **kwargs) self.pretty_print = pretty_print def __add__(self, rhs): diff --git a/requirements-lint.txt b/requirements-lint.txt index 17efde5683..904511689c 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1 +1 @@ -ruff==0.7.2 \ No newline at end of file +ruff==0.7.3 \ No newline at end of file