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 super-classes in root-instances #178

Closed
sellout opened this issue Sep 11, 2024 · 1 comment
Closed

Support super-classes in root-instances #178

sellout opened this issue Sep 11, 2024 · 1 comment

Comments

@sellout
Copy link

sellout commented Sep 11, 2024

I would like to be able to use something like

root-instances = [ { super-classes = ['\.TypeError .*'] } ]

to allow me to have TypeError-constrained instances without having to individually add the instances.

I’m imagining the super-classes list being &&ed together, so that all of the listed constraints must exist for it to be allowed.

TypeError is the only use case I can think of for this, but my guess is that something more general is the same level of effort.

@sellout
Copy link
Author

sellout commented Oct 5, 2024

I just realized I can match this with

root-instances = [
    {instance = '''^(.*TypeError .*) => .*'''},
]

@sellout sellout closed this as completed Oct 5, 2024
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

1 participant