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

Support for set type attributes #33

Open
ivan-alfonso opened this issue Dec 21, 2023 · 1 comment
Open

Support for set type attributes #33

ivan-alfonso opened this issue Dec 21, 2023 · 1 comment

Comments

@ivan-alfonso
Copy link

Adding support for ASTs with Set type parameters to ASTTransformer would be valuable. For example, have the ability to address the following metamodel (with a Set type parameter) in a transformation.

@dataclass
class Library(Node):
    books: Set["Book"] = field(default_factory=set)

@dataclass
class Book(Node):
    name: str = ""
@ftomassetti
Copy link
Member

Thank you fore reporting this @ivan-alfonso !

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

No branches or pull requests

2 participants