8000 Check that `delegate` can only be used with concrete generics · Issue #254 · dry-python/classes · GitHub
[go: up one dir, main page]

Skip to content

Check that delegate can only be used with concrete generics #254

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

Closed
sobolevn opened this issue Jul 6, 2021 · 1 comment
Closed

Check that delegate can only be used with concrete generics #254

sobolevn opened this issue Jul 6, 2021 · 1 comment

Comments

@sobolevn
Copy link
Member
sobolevn commented Jul 6, 2021

Related #24

@sobolevn
Copy link
Member Author
sobolevn commented Jul 8, 2021

There might be other cases like:

@some_typeclass.instance(int, delegate=GreaterThanZero)
def _some_positive_int(instance: int) -> ...

So, I guess that we should not limit this.

@sobolevn sobolevn closed this as completed Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant
0