Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flag Can't Be Imported #4121

Closed
ritzdorf opened this issue Apr 1, 2024 · 2 comments · Fixed by #4253
Closed

flag Can't Be Imported #4121

ritzdorf opened this issue Apr 1, 2024 · 2 comments · Fixed by #4253
Labels
Milestone

Comments

@ritzdorf
Copy link
Contributor

ritzdorf commented Apr 1, 2024

Version Information

  • vyper Version (output of vyper --version): commit 4b4e188ba83d28b5dd6ff66479e7448e5b925030

Issue description

While it is possible to import events and struct types both from .vy
and .vyi files, it is not possible to import flags.

For interfaces, this is because InterfaceT does not hold the flags
defined in the interface and hence InterfaceT.get_type_member() only
returns the set of events and struct types defined.

For modules, similarly, flag types are not added to the set of members
of the ModuleT at construction time.

@charles-cooper
Copy link
Member

is this fixed as of #3871?

@cyberthirst cyberthirst transferred this issue from another repository Jun 10, 2024
@cyberthirst cyberthirst transferred this issue from another repository Jun 10, 2024
@trocher
Copy link
Contributor

trocher commented Jul 24, 2024

is this fixed as of #3871?

Fixed when importing a module but not for interfaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants