-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementEnhancement to existing featureEnhancement to existing feature
Milestone
Description
The isassignable API is currently:
def isassignable(
value: object,
tp: TypeForm[T]† | TypeFormString[T]‡,
/, *, eval: bool = True
) -> TypeGuard[T]: ...
Alter it to return a TypeIs[T] instead, so that type narrowing happens as expected in the negative case, when isassignable returns False.
This change could potentially break API users, so should be marked as a major/breaking change.
Metadata
Metadata
Assignees
Labels
enhancementEnhancement to existing featureEnhancement to existing feature