Skip to content

Commit 79eea51

Browse files
Fix and enforce all ruff W rules.
1 parent c0338a4 commit 79eea51

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

comfy/ldm/modules/sub_quadratic_attention.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
import logging
1818

1919
try:
20-
from typing import Optional, NamedTuple, List, Protocol
20+
from typing import Optional, NamedTuple, List, Protocol
2121
except ImportError:
22-
from typing import Optional, NamedTuple, List
23-
from typing_extensions import Protocol
22+
from typing import Optional, NamedTuple, List
23+
from typing_extensions import Protocol
2424

2525
from typing import List
2626

ruff.toml

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ lint.ignore = ["ALL"]
55
lint.select = [
66
"S307", # suspicious-eval-usage
77
"T201", # print-usage
8-
"W291",
9-
"W292",
10-
"W293",
8+
"W",
119
# The "F" series in Ruff stands for "Pyflakes" rules, which catch various Python syntax errors and undefined names.
1210
# See all rules here: https://docs.astral.sh/ruff/rules/#pyflakes-f
1311
"F",

0 commit comments

Comments
 (0)