dry-python/classes

Check that `delegate` can only be used with concrete generics

sobolevn opened this issue · 1 comments

Related #24

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.