MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / __bool__

Method __bool__

functional/pipeline.py:116–122  ·  view source on GitHub ↗

Returns True if size is not zero. :return: True if size is not zero

(self)

Source from the content-addressed store, hash-verified

114 return str(self.to_list())
115
116 def __bool__(self):
117 """
118 Returns True if size is not zero.
119
120 :return: True if size is not zero
121 """
122 return self.size() != 0
123
124 def __nonzero__(self):
125 """

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected