Skip to content

Commit a806fff

Browse files
Apply ruff/flake8-slots rule SLOT000
SLOT000 Subclasses of `str` should define `__slots__`
1 parent 58fda7b commit a806fff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

uvloop/_testbase.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323

2424
class MockPattern(str):
25+
__slots__ = ()
26+
2527
def __eq__(self, other):
2628
return bool(re.search(str(self), other, re.S))
2729

0 commit comments

Comments
 (0)