Skip to content

Commit 1a73683

Browse files
committed
FIX: Interfaces don't have actions
1 parent a776102 commit 1a73683

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

blark/summary.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@ def from_declaration(
166166
cls,
167167
item: Union[tf.InitDeclaration, tf.StructureElementDeclaration, tf.UnionElementDeclaration],
168168
parent: Optional[
169-
Union[tf.Function, tf.Method, tf.FunctionBlock, tf.Property, tf.StructureTypeDeclaration]
169+
Union[
170+
tf.Function,
171+
tf.Method,
172+
tf.FunctionBlock,
173+
tf.Property,
174+
tf.StructureTypeDeclaration,
175+
]
170176
] = None,
171177
block_header: str = "unknown",
172178
filename: Optional[pathlib.Path] = None,
@@ -582,7 +588,6 @@ def from_function_block(
582588

583589
return summary
584590

585-
586591
def squash_base_extends(
587592
self, function_blocks: Dict[str, FunctionBlockSummary]
588593
) -> FunctionBlockSummary:
@@ -650,7 +655,7 @@ def __getitem__(
650655
decl = get_case_insensitive(self.declarations, key)
651656
if decl is not None:
652657
return decl
653-
for item in self.actions + self.methods + self.properties:
658+
for item in self.methods + self.properties:
654659
if item.name.lower() == key.lower():
655660
return item
656661
raise KeyError(key)

0 commit comments

Comments
 (0)