def __init__(self, type_key):
        """Provide a key (str). This indicates which type/s this ``JSONType``
        should be mapped to (e.g. 'bit' maps to ``bool``, etc.)."""
        try:
            self._types = self.json_types[type_key]
        except __HOLE__:
            raise ValueError('Invalid key "{0}" provided'.format(type_key))
        else:
            self._json_type_code = type_key
dataset/ETHPy150Open orokusaki/django-jsonrpc-2-0/jsonrpc/jsontype.py/JSONType.__init__