Register validation types as the sliced type.
dangle opened this issue · 1 comments
dangle commented
It should be possible to run this test:
from typingplus import is_instance
from typet import Bounded
assert is_instance(5, Bounded[int, 0:10])
I believe this causes an issue when using validation types with StrictObject.
This can be done by setting __instancecheck__
and __subclasscheck__
in BoundedMeta._BoundedSubclass
.