Skip to content

Commit

Permalink
Replace classmethod by staticmethod
Browse files Browse the repository at this point in the history
Ref. #47, #382
  • Loading branch information
treiher committed Aug 19, 2020
1 parent 45d0662 commit ae0a0b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rflx/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def __validate_state_reachability(self) -> None:
self.location,
)

@classmethod
def __entity_name(cls, decl: Declaration) -> str:
@staticmethod
def __entity_name(decl: Declaration) -> str:
if isinstance(decl, SubprogramDeclaration):
return "subprogram"
if isinstance(decl, VariableDeclaration):
Expand All @@ -193,7 +193,7 @@ def __entity_name(cls, decl: Declaration) -> str:
return "channel"
if isinstance(decl, PrivateDeclaration):
return "private"
assert False, f"Unsupported entity {type(decl).__name__}"
assert False, f"unsupported entity {type(decl).__name__}"

def __validate_declarations(self) -> None:
for s in self.states:
Expand Down

0 comments on commit ae0a0b4

Please sign in to comment.