Skip to content

Commit e74d29d

Browse files
committed
Suppressed a false IDE warning about the wrong types
1 parent d37be8e commit e74d29d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arpeggio/peg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ def resolve(
693693
self,
694694
resolve_cb: typing.Callable[[ParserModelItem], ParserModelItem]
695695
) -> 'MatchActions':
696-
node = super().resolve(resolve_cb)
696+
node = typing.cast(typing.Self, super().resolve(resolve_cb))
697697
for action in node.actions:
698698
action._rule = node.nodes[0]
699699
return node

0 commit comments

Comments
 (0)