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

Check for mutable bounds in Phantom or PhantomBase #155

Closed
antonagestam opened this issue Sep 25, 2021 · 0 comments · Fixed by #156
Closed

Check for mutable bounds in Phantom or PhantomBase #155

antonagestam opened this issue Sep 25, 2021 · 0 comments · Fixed by #156

Comments

@antonagestam
Copy link
Owner

Related to #128, I'm realizing there's more we can do to eliminate the risk of users using phantom types with mutable bounds. The check from sized can be reused but made to raise at import-time. It would also make sense to check for non-frozen dataclasses, and perhaps even to check dataclass fields.

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

Successfully merging a pull request may close this issue.

1 participant