from typing import Any, Sequence
from multimethod import multimethod
from visions.relations import IdentityRelation, TypeRelation
from visions.types.object import Object
from visions.types.type import VisionsBaseType
[docs]class String(VisionsBaseType):
"""**String** implementation of :class:`visions.types.type.VisionsBaseType`.
Examples:
>>> x = ['rubin', 'carter', 'champion']
>>> x in visions.String
True
"""
@classmethod
def get_relations(cls) -> Sequence[TypeRelation]:
relations = [IdentityRelation(cls, Object)]
return relations
[docs] @staticmethod
@multimethod
def contains_op(item: Any, state: dict) -> bool:
pass