Skip to content

Commit

Permalink
🐛 Fix parent in statements and type names
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Jun 24, 2024
1 parent 0825590 commit 667f4d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions wake/ir/statements/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ def from_ast(
assert False, f"Unknown statement type: {type(statement)}"

@property
@abstractmethod
def parent(
self,
) -> Union[
Expand All @@ -129,7 +128,7 @@ def parent(
Returns:
Parent node of the statement.
"""
...
return super().parent

@property
@abstractmethod
Expand Down
3 changes: 1 addition & 2 deletions wake/ir/type_names/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ def from_ast(
return UserDefinedTypeName(init, type_name, parent)

@property
@abstractmethod
def parent(
self,
) -> Union[
Expand All @@ -107,7 +106,7 @@ def parent(
Returns:
Parent node of the type name.
"""
...
return super().parent

@property
@weak_self_lru_cache(maxsize=2048)
Expand Down

0 comments on commit 667f4d6

Please sign in to comment.