Skip to content

Commit 6a30549

Browse files
Maffoochclaude
andcommitted
Fix ruff FURB189: use UserDict instead of dict subclass
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 39418cb commit 6a30549

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unittests/test_product_announcements.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from collections import UserDict
12

23
from django.http import HttpRequest, HttpResponse
34
from django.test import SimpleTestCase
@@ -10,7 +11,7 @@
1011
)
1112

1213

13-
class _SessionDict(dict):
14+
class _SessionDict(UserDict):
1415

1516
"""Minimal session stand-in that supports .get/.pop/[] like Django sessions."""
1617

0 commit comments

Comments
 (0)