🔥 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:
parent
2f24fca1f2
commit
d2750dd3dc
1 changed files with 0 additions and 8 deletions
|
|
@ -52,14 +52,6 @@ class FrontendNode(BaseModel):
|
||||||
output_types: List[str] = []
|
output_types: List[str] = []
|
||||||
field_formatters: FieldFormatters = Field(default_factory=FieldFormatters)
|
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
|
# field formatters is an instance attribute but it is not used in the class
|
||||||
# so we need to create a method to get it
|
# so we need to create a method to get it
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue