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

suggestion: allow using NatSpec docstring instead of mandated Ellipsis in Interfaces #4238

Open
fubuloubu opened this issue Sep 14, 2024 · 0 comments

Comments

@fubuloubu
Copy link
Member

Kind of borrowed from python ABCs, but I've always kind of liked that you just need some AST node that fits under an interface for @abstractmethod to work. This is nice in Python because docstrings "flow" through the inheritance heirarchy, so if you don't override the docstring on a subclass then you get a docstring "for free". I know that vyper doesn't support this rn (it could in the future), but anyways it's just a little bit annoying to mandate ... when you have a docstring and if possible it would be nice if I didn't have to

FunctionDeclarationException: function body in an interface can only be `...`!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant