Skip to content

Commit

Permalink
NovaEmptyComponent replace classmethod with staticmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
atarutin committed Jun 15, 2024
1 parent 04ea1d2 commit 19ed76f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/nova_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ class NovaEmptyComponent(NovaComponent):
def __init__(self):
super().__init__(NovaEmptyComponent.default_component_name, None)

@classmethod
def parse(cls, component_name: str):
@staticmethod
def parse(component_name: str):
"""Parses component name"""
normalized = component_name.strip().lower()
if normalized in NovaEmptyComponent.component_names:
Expand Down

0 comments on commit 19ed76f

Please sign in to comment.