PEP 532: tweak name in example
This commit is contained in:
parent
8f095cf8c0
commit
8191dab630
|
@ -536,9 +536,9 @@ Unlike PEPs 505 and 531, this proposal readily handles custom sentinel objects::
|
|||
class defined(types.CircuitBreaker):
|
||||
MISSING = object()
|
||||
def __init__(self, value):
|
||||
super().__init__(self, value is not self.MISSING, not_defined)
|
||||
super().__init__(self, value is not self.MISSING, undefined)
|
||||
|
||||
class not_defined(types.CircuitBreaker):
|
||||
class undefined(types.CircuitBreaker):
|
||||
def __init__(self, value):
|
||||
super().__init__(self, value is defined.MISSING, defined)
|
||||
|
||||
|
|
Loading…
Reference in New Issue