MCPcopy Create free account
hub / github.com/holoviz/hvplot / _UndefinedType

Class _UndefinedType

hvplot/util.py:47–60  ·  view source on GitHub ↗

Dummy value to signal completely undefined values rather than simple None values.

Source from the content-addressed store, hash-verified

45
46
47class _UndefinedType:
48 """
49 Dummy value to signal completely undefined values rather than
50 simple None values.
51 """
52
53 def __bool__(self):
54 # Haven't defined whether Undefined is falsy or truthy,
55 # so to avoid subtle bugs raise an error when it
56 # is used in a comparison without `is`.
57 raise RuntimeError('Use `is` to compare Undefined')
58
59 def __repr__(self):
60 return '<Undefined>'
61
62
63_Undefined = _UndefinedType()

Callers 1

util.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…