@@ -30,7 +30,7 @@ def INPUT_TYPES(cls):
3030 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
3131 return True
3232
33- def append (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
33+ def append (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
3434 result = kwargs .get ('list' , []).copy ()
3535 item = kwargs .get ('item' , [])
3636 if len (item ) > 0 :
@@ -66,7 +66,7 @@ def INPUT_TYPES(cls):
6666 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
6767 return True
6868
69- def extend (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
69+ def extend (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
7070 return (kwargs .get ('list_a' , []) + kwargs .get ('list_b' , []),)
7171
7272
@@ -99,7 +99,7 @@ def INPUT_TYPES(cls):
9999 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
100100 return True
101101
102- def insert (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
102+ def insert (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
103103 result = kwargs .get ('list' , []).copy ()
104104 result .insert (kwargs .get ('index' , [0 ])[0 ], kwargs .get ('item' , [None ])[0 ])
105105 return (result ,)
@@ -133,7 +133,7 @@ def INPUT_TYPES(cls):
133133 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
134134 return True
135135
136- def remove (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ], bool ]:
136+ def remove (self , ** kwargs : list [ Any ]) -> tuple [list [Any ], bool ]:
137137 result = kwargs .get ('list' , []).copy ()
138138 value = kwargs .get ('value' , [])
139139 try :
@@ -172,12 +172,12 @@ def INPUT_TYPES(cls):
172172 OUTPUT_IS_LIST = (True , False )
173173
174174 @classmethod
175- def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool | str :
176- if input_types [0 ].get ("index" , "INT" ) not in ( "INT" ) :
175+ def VALIDATE_INPUTS (cls , input_types : list [ dict [str , str ] ]) -> bool | str :
176+ if input_types [0 ].get ("index" , "INT" ) != "INT" :
177177 return "index must be an INT type"
178178 return True
179179
180- def pop (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ], Any ]:
180+ def pop (self , ** kwargs : list [ Any ]) -> tuple [list [Any ], Any ]:
181181 result = kwargs .get ('list' , []).copy ()
182182 index = kwargs .get ('index' , [- 1 ])[0 ]
183183 try :
@@ -213,7 +213,7 @@ def INPUT_TYPES(cls):
213213 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
214214 return True
215215
216- def clear (self , ** kwargs : dict [ str , list ]) -> tuple [[] ]:
216+ def clear (self , ** kwargs : list [ Any ]) -> tuple [list ]:
217217 # Return a new empty list rather than modifying the input
218218 return ([],)
219219
@@ -250,7 +250,7 @@ def INPUT_TYPES(cls):
250250 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
251251 return True
252252
253- def list_index (self , ** kwargs : dict [ str , list ]) -> tuple [int ]:
253+ def list_index (self , ** kwargs : list [ Any ]) -> tuple [int ]:
254254 input_list = kwargs .get ('list' , [])
255255 value = kwargs .get ('value' , [None ])[0 ]
256256 start = kwargs .get ('start' , [0 ])[0 ]
@@ -291,7 +291,7 @@ def INPUT_TYPES(cls):
291291 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
292292 return True
293293
294- def count (self , ** kwargs : dict [ str , list ]) -> tuple [int ]:
294+ def count (self , ** kwargs : list [ Any ]) -> tuple [int ]:
295295 value = kwargs .get ('value' , [None ])[0 ]
296296 return (kwargs .get ('list' , []).count (value ),)
297297
@@ -326,7 +326,7 @@ def INPUT_TYPES(cls):
326326 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
327327 return True
328328
329- def sort (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
329+ def sort (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
330330 # Convert string to boolean
331331 reverse = kwargs .get ('reverse' , ["False" ])[0 ] == "True"
332332
@@ -360,7 +360,7 @@ def INPUT_TYPES(cls):
360360 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
361361 return True
362362
363- def reverse (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
363+ def reverse (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
364364 result = kwargs .get ('list' , []).copy ()
365365 result .reverse ()
366366 return (result ,)
@@ -392,7 +392,7 @@ def INPUT_TYPES(cls):
392392 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
393393 return True
394394
395- def copy (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
395+ def copy (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
396396 return (kwargs .get ('list' , []).copy (),)
397397
398398
@@ -421,7 +421,7 @@ def INPUT_TYPES(cls):
421421 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
422422 return True
423423
424- def length (self , ** kwargs : dict [ str , list ]) -> tuple [int ]:
424+ def length (self , ** kwargs : list [ Any ]) -> tuple [int ]:
425425 return (len (kwargs .get ('list' , [])),)
426426
427427
@@ -457,7 +457,7 @@ def INPUT_TYPES(cls):
457457 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
458458 return True
459459
460- def slice (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
460+ def slice (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
461461 input_list = kwargs .get ('list' , [])
462462 start = kwargs .get ('start' , [0 ])[0 ]
463463 stop = kwargs .get ('stop' , [- 1 ])[0 ]
@@ -481,7 +481,7 @@ class DataListGetItem:
481481 def INPUT_TYPES (cls ):
482482 return {
483483 "required" : {
484- "input_list " : ("*" ,),
484+ "list " : ("*" ,),
485485 "index" : ("INT" , {"default" : 0 }),
486486 }
487487 }
@@ -497,7 +497,7 @@ def INPUT_TYPES(cls):
497497 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
498498 return True
499499
500- def get_item (self , ** kwargs : dict [ str , list ]) -> tuple [Any ]:
500+ def get_item (self , ** kwargs : list [ Any ]) -> tuple [Any ]:
501501 index = kwargs .get ('index' , [0 ])[0 ]
502502 try :
503503 return (kwargs .get ('list' , [])[index ],)
@@ -534,7 +534,7 @@ def INPUT_TYPES(cls):
534534 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
535535 return True
536536
537- def set_item (self , ** kwargs : dict [ str , list ]) -> tuple [Any ]:
537+ def set_item (self , ** kwargs : list [ Any ]) -> tuple [Any ]:
538538 input_list = kwargs .get ('list' , [])
539539 index = kwargs .get ('index' , [0 ])[0 ]
540540 value = kwargs .get ('value' , [None ])[0 ]
@@ -557,7 +557,7 @@ class DataListContains:
557557 def INPUT_TYPES (cls ):
558558 return {
559559 "required" : {
560- "input_list " : ("*" ,),
560+ "list " : ("*" ,),
561561 "value" : ("*" ,),
562562 }
563563 }
@@ -573,7 +573,7 @@ def INPUT_TYPES(cls):
573573 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
574574 return True
575575
576- def contains (self , ** kwargs : dict [ str , list ]) -> tuple [bool ]:
576+ def contains (self , ** kwargs : list [ Any ]) -> tuple [bool ]:
577577 value = kwargs .get ('value' , [])
578578 if len (value ) == 0 :
579579 return (False ,)
@@ -597,7 +597,7 @@ def INPUT_TYPES(cls):
597597 FUNCTION = "create_empty"
598598 OUTPUT_IS_LIST = (True ,)
599599
600- def create_empty (self ) -> tuple [[] ]:
600+ def create_empty (self ) -> tuple [list ]:
601601 return ([],)
602602
603603
@@ -634,7 +634,7 @@ def INPUT_TYPES(cls):
634634 def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool :
635635 return True
636636
637- def zip_lists (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
637+ def zip_lists (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
638638 lists = [kwargs .get ('list1' , []), kwargs .get ('list2' , [])]
639639
640640 if 'list3' in kwargs :
@@ -677,12 +677,12 @@ def INPUT_TYPES(cls):
677677 OUTPUT_IS_LIST = (True ,)
678678
679679 @classmethod
680- def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool | str :
681- if input_types [0 ]["filter" ] not in ( "BOOLEAN" ) :
680+ def VALIDATE_INPUTS (cls , input_types : list [ dict [str , str ] ]) -> bool | str :
681+ if input_types [0 ]["filter" ] != "BOOLEAN" :
682682 return "filter must be a BOOLEAN type"
683683 return True
684684
685- def filter_data (self , ** kwargs : dict [ str , list ]) -> tuple [list [Any ]]:
685+ def filter_data (self , ** kwargs : list [ Any ]) -> tuple [list [Any ]]:
686686 values = kwargs .get ('value' , [])
687687 filters = kwargs .get ('filter' , [])
688688
@@ -716,12 +716,12 @@ def INPUT_TYPES(cls):
716716 INPUT_IS_LIST = True
717717
718718 @classmethod
719- def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool | str :
719+ def VALIDATE_INPUTS (cls , input_types : list [ dict [str , str ] ]) -> bool | str :
720720 if input_types [0 ]["list" ] not in ("FLOAT" , "INT" ):
721721 return "list must contain FLOAT or INT types"
722722 return True
723723
724- def find_min (self , ** kwargs : dict [ str , list ]) -> tuple [Any ]:
724+ def find_min (self , ** kwargs : list [ Any ]) -> tuple [Any ]:
725725 values = kwargs .get ('list' , [])
726726 if not values :
727727 return (None ,)
@@ -758,12 +758,12 @@ def INPUT_TYPES(cls):
758758 INPUT_IS_LIST = True
759759
760760 @classmethod
761- def VALIDATE_INPUTS (cls , input_types : dict [str , str ]) -> bool | str :
761+ def VALIDATE_INPUTS (cls , input_types : list [ dict [str , str ] ]) -> bool | str :
762762 if input_types [0 ]["list" ] not in ("FLOAT" , "INT" ):
763763 return "list must contain FLOAT or INT types"
764764 return True
765765
766- def find_max (self , ** kwargs : dict [ str , list ]) -> tuple [Any ]:
766+ def find_max (self , ** kwargs : list [ Any ]) -> tuple [Any ]:
767767 values = kwargs .get ('list' , [])
768768 if not values :
769769 return (None ,)
0 commit comments