diff --git a/src/safeds_stubgen/api_analyzer/_ast_visitor.py b/src/safeds_stubgen/api_analyzer/_ast_visitor.py index 4e6f82cc..381bc14d 100644 --- a/src/safeds_stubgen/api_analyzer/_ast_visitor.py +++ b/src/safeds_stubgen/api_analyzer/_ast_visitor.py @@ -319,7 +319,7 @@ def leave_assignmentstmt(self, _: AssignmentStmt) -> None: self.api.add_enum_instance(assignment) parent.add_enum_instance(assignment) - else: + else: # pragma: no cover raise TypeError("Unexpected value type for assignments") # ############################## Utilities ############################## # @@ -474,7 +474,7 @@ def create_attribute( else: # pragma: no cover raise AttributeError("Could not get argument information for attribute.") - else: + else: # pragma: no cover raise TypeError("Attribute has an unexpected type.") type_ = None @@ -528,9 +528,9 @@ def parse_parameter_data(self, node: FuncDef, function_id: str) -> list[Paramete value = True elif initializer.name == "False": value = False - else: + else: # pragma: no cover raise ValueError("No value found for parameter") - else: + else: # pragma: no cover raise ValueError("No value found for parameter") else: value = initializer.value