singer_sdk.typing.Constant#

class singer_sdk.typing.Constant#

A constant property.

A property that is always the same value.

Examples

>>> t = Constant("foo")
>>> print(t.to_json(indent=2))
{
    "const": "foo"
}
__init__(value: Optional[Union[str, int, float, bool, list, dict]]) None#

Initialize Constant.

Parameters:

value – Value of the constant.

property type_dict: dict#

Get type dictionary.

Returns:

A dictionary describing the type.