parent
68c54982c4
commit
caf21bf2b8
|
@ -581,7 +581,7 @@ No-Value Protocol
|
|||
|
||||
The operators could be generalised to user-defined types by defining a protocol
|
||||
to indicate when a value represents "no value". Such a protocol may be a dunder
|
||||
method ``__has_value__(self)` that returns ``True`` if the value should be
|
||||
method ``__has_value__(self)`` that returns ``True`` if the value should be
|
||||
treated as having a value, and ``False`` if the value should be treated as no
|
||||
value.
|
||||
|
||||
|
|
Loading…
Reference in New Issue