Skip to content

Commit

Permalink
Ruff: Fix Ruff FURB189 on bugfix (#11290)
Browse files Browse the repository at this point in the history
* Ruff: Fix FURB189 on bugfix

* Update dojo/api_v2/serializers.py

Co-authored-by: Charles Neill <[email protected]>

* fix

* Update dojo/api_v2/serializers.py

Co-authored-by: Charles Neill <[email protected]>

* Update dojo/api_v2/serializers.py

Co-authored-by: Charles Neill <[email protected]>

* Update dojo/api_v2/serializers.py

Co-authored-by: Charles Neill <[email protected]>

* ruff

---------

Co-authored-by: Charles Neill <[email protected]>
  • Loading branch information
manuel-sommer and cneill authored Nov 22, 2024
1 parent 3f12592 commit 1111ff6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dojo/api_v2/serializers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import collections
import json
import logging
import re
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 1111ff6

Please sign in to comment.