All boolean operations for types
Opened this issue · 0 comments
emptybutton commented
Currently, the library has available operations |
(or) and &
(and) on types, but to correspond to all binary operations there is not enough !
(not) operation.
Need to add the ability for not_
to be executed in the isinstance
function with the corresponding functionality in this form:
assert not isinstance(not_(int), int())
assert isinstance(not_(int), str())
assert not isinstance(not_[int], int())
assert isinstance(not_[int], str())