@@ -21,7 +21,7 @@ def __init__(self, function_name: str, class_name: str, is_constructor: bool):
2121 def visit_Call (self , node : cst .Call ):
2222 """Check if the function/class constructor is called."""
2323 # handle class constructor call
24- if self .is_constructor and m .matches (node .func , m .Name (self .class_name )):
24+ if self .is_constructor and m .matches (node .func , m .Name (self .class_name )): # type: ignore
2525 self .found = True
2626
2727 # handle standalone function calls
@@ -805,15 +805,15 @@ def refactor(
805805 # just remove the unused params if the used parameters are within the max param list
806806 updated_function_node = self .function_updater .remove_unused_params (
807807 self .function_node ,
808- self .used_params ,
808+ self .used_params , # type: ignore
809809 default_value_params , # type: ignore
810810 )
811811
812812 # update all calls to match the new signature
813813 tree = self .function_updater .update_function_calls_unclassified (
814814 tree ,
815815 self .function_node ,
816- self .used_params ,
816+ self .used_params , # type: ignore
817817 self .enclosing_class_name , # type: ignore
818818 )
819819
@@ -863,8 +863,8 @@ def _process_file(self, file: Path):
863863 tree = cst .parse_module (file .read_text ())
864864
865865 visitor = FunctionCallVisitor (
866- self .function_node .name .value ,
867- self .enclosing_class_name ,
866+ self .function_node .name .value , # type: ignore
867+ self .enclosing_class_name , # type: ignore
868868 self .is_constructor , # type: ignore
869869 )
870870 tree .visit (visitor )
0 commit comments