🔥 refactor(base.py): remove unused method process_base_classes from FrontendNode class

The `process_base_classes` method in the `FrontendNode` class is no longer used and can be safely removed to improve code readability and maintainability.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-09 11:10:07 -03:00
commit d2750dd3dc

View file

@ -52,14 +52,6 @@ class FrontendNode(BaseModel):
output_types: List[str] = []
field_formatters: FieldFormatters = Field(default_factory=FieldFormatters)
def process_base_classes(self) -> None:
"""Removes unwanted base classes from the list of base classes."""
self.base_classes = [
base_class
for base_class in self.base_classes
if base_class not in CLASSES_TO_REMOVE
]
# field formatters is an instance attribute but it is not used in the class
# so we need to create a method to get it
@staticmethod