Skip to content

Commit

Permalink
apply cc suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Oct 4, 2024
1 parent 20d1d33 commit d2e8aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/semantics/types/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(
def get_type_member(self, attr, node):
# get an event, struct or constant from this interface
type_member = self._helper.get_member(attr, node)
if isinstance(type_member, (EventT, FlagT, StructT)):
if isinstance(type_member, _UserType):
return TYPE_T(type_member)
return type_member

Expand Down

0 comments on commit d2e8aea

Please sign in to comment.