.. module:: traitlets
The base class for all trait types.
.. automethod:: __init__
.. automethod:: from_string
.. autoclass:: Integer An integer trait. On Python 2, this automatically uses the ``int`` or ``long`` types as necessary.
On Python 2, these are traitlets for values where the int and long
types are not interchangeable. On Python 3, they are both aliases for
:class:`Integer`.
In almost all situations, you should use :class:`Integer` instead of these.
.. autoclass:: Float
.. autoclass:: Complex
Casting variants of the above. When a value is assigned to the attribute,
these will attempt to convert it by calling e.g. value = int(value).
.. autoclass:: Unicode
.. autoclass:: Bytes
Casting variants. When a value is assigned to the attribute, these will attempt to convert it to their type. They will not automatically encode/decode between unicode and bytes, however.
.. autoclass:: ObjectName
.. autoclass:: DottedObjectName
.. autoclass:: List :members: __init__, from_string_list, item_from_string
.. autoclass:: Set :members: __init__
.. autoclass:: Tuple :members: __init__
.. autoclass:: Dict :members: __init__, from_string_list, item_from_string
.. autoclass:: Instance :members: __init__
.. autoclass:: Type :members: __init__
.. autoclass:: This
.. autoclass:: ForwardDeclaredInstance
.. autoclass:: ForwardDeclaredType
.. autoclass:: Bool
Casting variant. When a value is assigned to the attribute, this will
attempt to convert it by calling value = bool(value).
.. autoclass:: Enum
.. autoclass:: CaselessStrEnum
.. autoclass:: UseEnum
.. autoclass:: TCPAddress
.. autoclass:: CRegExp
.. autoclass:: Path
.. autoclass:: Union :members: __init__
.. autoclass:: Callable
.. autoclass:: Any