File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,6 @@ ignore = [
160
160
# ruff ignore
161
161
" RUF005" , # Consider `(x, *y)` instead of concatenation
162
162
" RUF012" , # Mutable class attributes should be annotated with `typing.ClassVar`
163
- " RUF015" , # Prefer `next(iter(x))` over single element slice
164
163
]
165
164
166
165
[tool .ruff .format ]
Original file line number Diff line number Diff line change @@ -1209,7 +1209,7 @@ def test_bar(self):
1209
1209
classcol = pytester .collect_by_name (modcol , "TestClass" )
1210
1210
assert isinstance (classcol , Class )
1211
1211
path , lineno , msg = classcol .reportinfo ()
1212
- func = list ( classcol .collect ())[ 0 ]
1212
+ func = next ( iter ( classcol .collect ()))
1213
1213
assert isinstance (func , Function )
1214
1214
path , lineno , msg = func .reportinfo ()
1215
1215
You can’t perform that action at this time.
0 commit comments