# Path: configmanager/utils.py
# class _NotSet(object):
#     def __init__(self):
#     def __eq__(self, other):
#     def __nonzero__(self):
#     def __bool__(self):
#     def __str__(self):
#     def __repr__(self):
#     def __deepcopy__(self, memodict):
#     def __copy__(self):
# def _get_persistence_adapter_for(filename):


import six
from builtins import str as text
from .utils import not_set




class _ItemType(object):
    aliases = ()
    builtin_types = ()

    def serialize(self, instance, **kwargs):
        return instance

    def deserialize(self, payload, **kwargs):
        if payload is None or payload is not_set:
            return payload

# Path: configmanager/utils.py
# class _NotSet(object):
#     def __init__(self):
#     def __eq__(self, other):
#     def __nonzero__(self):
#     def __bool__(self):
#     def __str__(self):
#     def __repr__(self):
#     def __deepcopy__(self, memodict):
#     def __copy__(self):
# def _get_persistence_adapter_for(filename):


# Path: configmanager/item_types.py
import six
from builtins import str as text
from .utils import not_set





class _ItemType(object):
    aliases = ()
    builtin_types = ()

    def serialize(self, instance, **kwargs):
        return instance

    def deserialize(self, payload, **kwargs):
        if payload is None or payload is not_set:
            return payload

        if self.builtin_types: