pg.object_utils.MissingValue¶
Accessible via pg.object_utils.MissingValue
.
- class MissingValue[source]¶
Bases:
pg.Formattable
,pg.JSONConvertible
Value placeholder for an unassigned attribute.
Methods:
format
(*args, **kwargs)Formats this object into a string representation.
to_json
(**kwargs)Returns a plain Python value as a representation for this object.
- format(*args, **kwargs)[source]¶
Formats this object into a string representation.
- Parameters:
compact – If True, this object will be formatted into a single line.
verbose – If True, this object will be formatted with verbosity. Subclasses should define verbosity on their own.
root_indent – The start indent level for this object if the output is a multi-line string.
**kwargs – Subclass specific keyword arguments.
- Returns:
A string of formatted object.
- to_json(**kwargs)[source]¶
Returns a plain Python value as a representation for this object.
A plain Python value are basic python types that can be serialized into JSON, e.g:
bool
,int
,float
,str
,dict
(with string keys),list
,tuple
where the container types should have plain Python values as their values.