aiida.orm.nodes.data.str 源代码

###########################################################################
# Copyright (c), The AiiDA team. All rights reserved.                     #
# This file is part of the AiiDA code.                                    #
#                                                                         #
# The code is hosted on GitHub at https://github.com/aiidateam/aiida-core #
# For further information on the license, see the LICENSE.txt file        #
# For further information please visit http://www.aiida.net               #
###########################################################################
"""`Data` sub class to represent a string value."""

from .base import BaseType, to_aiida_type

__all__ = ('Str',)


[文档] class Str(BaseType): """`Data` sub class to represent a string value.""" _type = str
[文档] @to_aiida_type.register(str) def _(value): return Str(value)