MCPcopy Create free account
hub / github.com/numpy/numpy / __bool__

Method __bool__

numpy/core/tests/test_numeric.py:1532–1536  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1530 class FalseThenTrue:
1531 _val = False
1532 def __bool__(self):
1533 try:
1534 return self._val
1535 finally:
1536 self._val = True
1537
1538 class TrueThenFalse:
1539 _val = True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected