Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruff: Fix Ruff FURB189 on bugfix #11290

Merged
merged 7 commits into from
Nov 22, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dojo/api_v2/serializers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import logging
import re
from collections import UserList
manuel-sommer marked this conversation as resolved.
Show resolved Hide resolved
from datetime import datetime

import six
Expand Down Expand Up @@ -280,7 +281,7 @@ def _pop_tags(self, validated_data):
return (to_be_tagged, validated_data)


class RequestResponseDict(list):
class RequestResponseDict(UserList):
manuel-sommer marked this conversation as resolved.
Show resolved Hide resolved
def __init__(self, *args, **kwargs):
pretty_print = kwargs.pop("pretty_print", True)
list.__init__(self, *args, **kwargs)
manuel-sommer marked this conversation as resolved.
Show resolved Hide resolved
Expand Down