Skip to content

Commit 8d0661d

Browse files
authored
Lint instance methods (Comfy-Org#7903)
1 parent 6d32dc0 commit 8d0661d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

comfy_extras/nodes_post_processing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def INPUT_TYPES(s):
141141

142142
CATEGORY = "image/postprocessing"
143143

144+
@staticmethod
144145
def bayer(im, pal_im, order):
145146
def normalized_bayer_matrix(n):
146147
if n == 0:

comfy_extras/nodes_webcam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def INPUT_TYPES(s):
2020

2121
CATEGORY = "image"
2222

23-
def load_capture(s, image, **kwargs):
23+
def load_capture(self, image, **kwargs):
2424
return super().load_image(folder_paths.get_annotated_filepath(image))
2525

2626

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ documentation = "https://docs.comfy.org/"
1212

1313
[tool.ruff]
1414
lint.select = [
15+
"N805", # invalid-first-argument-name-for-method
1516
"S307", # suspicious-eval-usage
1617
"S102", # exec
1718
"T", # print-usage

0 commit comments

Comments
 (0)