You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if the current implementation for refinement types is intuitive, or if even it's memory efficient. Currently, a refinement predicate is a class that inherits from RefinementPredicate, and has a type_guard method:
I'm not sure if the current implementation for refinement types is intuitive, or if even it's memory efficient. Currently, a refinement predicate is a class that inherits from
RefinementPredicate
, and has atype_guard
method:Alternatives I've thought about:
RefinementPredicate
classes should be instantiated with aself.value
param. To improve memory management, they could use__slots__
.The text was updated successfully, but these errors were encountered: