mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-06-09 15:47:14 +00:00
Lint instance methods (#7903)
This commit is contained in:
parent
6d32dc049e
commit
8d0661d0ba
@ -141,6 +141,7 @@ class Quantize:
|
|||||||
|
|
||||||
CATEGORY = "image/postprocessing"
|
CATEGORY = "image/postprocessing"
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
def bayer(im, pal_im, order):
|
def bayer(im, pal_im, order):
|
||||||
def normalized_bayer_matrix(n):
|
def normalized_bayer_matrix(n):
|
||||||
if n == 0:
|
if n == 0:
|
||||||
|
@ -20,7 +20,7 @@ class WebcamCapture(nodes.LoadImage):
|
|||||||
|
|
||||||
CATEGORY = "image"
|
CATEGORY = "image"
|
||||||
|
|
||||||
def load_capture(s, image, **kwargs):
|
def load_capture(self, image, **kwargs):
|
||||||
return super().load_image(folder_paths.get_annotated_filepath(image))
|
return super().load_image(folder_paths.get_annotated_filepath(image))
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ documentation = "https://docs.comfy.org/"
|
|||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
lint.select = [
|
lint.select = [
|
||||||
|
"N805", # invalid-first-argument-name-for-method
|
||||||
"S307", # suspicious-eval-usage
|
"S307", # suspicious-eval-usage
|
||||||
"S102", # exec
|
"S102", # exec
|
||||||
"T", # print-usage
|
"T", # print-usage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user