mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-25 07:05:44 -03:00
classmethods take cls pylance warning
This commit is contained in:
@@ -50,7 +50,7 @@ loaded_objects = {
|
|||||||
class TSC_EfficientLoader:
|
class TSC_EfficientLoader:
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(cls):
|
||||||
return {"required": { "ckpt_name": (folder_paths.get_filename_list("checkpoints"), ),
|
return {"required": { "ckpt_name": (folder_paths.get_filename_list("checkpoints"), ),
|
||||||
"vae_name": (["Baked VAE"] + folder_paths.get_filename_list("vae"),),
|
"vae_name": (["Baked VAE"] + folder_paths.get_filename_list("vae"),),
|
||||||
"clip_skip": ("INT", {"default": -1, "min": -24, "max": -1, "step": 1}),
|
"clip_skip": ("INT", {"default": -1, "min": -24, "max": -1, "step": 1}),
|
||||||
@@ -134,7 +134,7 @@ class TSC_KSampler:
|
|||||||
self.type = "temp"
|
self.type = "temp"
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(cls):
|
||||||
return {"required":
|
return {"required":
|
||||||
{"sampler_state": (["Sample", "Hold"], ),
|
{"sampler_state": (["Sample", "Hold"], ),
|
||||||
"my_unique_id": ("INT", {"default": 0, "min": 0, "max": 15}),
|
"my_unique_id": ("INT", {"default": 0, "min": 0, "max": 15}),
|
||||||
@@ -358,7 +358,7 @@ class TSC_ImageOverlay:
|
|||||||
# TSC Evaluate Integers
|
# TSC Evaluate Integers
|
||||||
class TSC_EvaluateInts:
|
class TSC_EvaluateInts:
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(cls):
|
||||||
return {"required": {
|
return {"required": {
|
||||||
"python_expression": ("STRING", {"default": "((a + b) - c) / 2", "multiline": False}),
|
"python_expression": ("STRING", {"default": "((a + b) - c) / 2", "multiline": False}),
|
||||||
"print_to_console": (["False", "True"],),},
|
"print_to_console": (["False", "True"],),},
|
||||||
@@ -385,7 +385,7 @@ class TSC_EvaluateInts:
|
|||||||
# TSC Evaluate Strings
|
# TSC Evaluate Strings
|
||||||
class TSC_EvaluateStrs:
|
class TSC_EvaluateStrs:
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(cls):
|
||||||
return {"required": {
|
return {"required": {
|
||||||
"python_expression": ("STRING", {"default": "a + b + c", "multiline": False}),
|
"python_expression": ("STRING", {"default": "a + b + c", "multiline": False}),
|
||||||
"print_to_console": (["False", "True"],)},
|
"print_to_console": (["False", "True"],)},
|
||||||
|
|||||||
Reference in New Issue
Block a user