From 43bc980f43ef41437b245e74ab7b1a73672facdd Mon Sep 17 00:00:00 2001 From: manuelsommer <47991713+manuel-sommer@users.noreply.github.com> Date: Tue, 12 Nov 2024 21:50:29 +0100 Subject: [PATCH] :bug: fix Bump ruff from 0.7.2 to 0.7.3 (#11224) * :bug: fix renovate ruff update * ruff * Update dojo/api_v2/serializers.py Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com> --------- Co-authored-by: Charles Neill <1749665+cneill@users.noreply.github.com> --- dojo/api_v2/serializers.py | 5 +++-- requirements-lint.txt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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