<s> from graphql . core . type import GraphQLScalarType <EOL> from . . types . base import MountedType <EOL> from . base import ClassType <EOL> class Scalar ( ClassType , MountedType ) : <EOL> @ classmethod <EOL> def internal_type ( cls , schema ) : <EOL> serialize = getattr ( cls , '<STR_LIT>' ) <EOL> parse_literal = getattr ( cls , '<STR_LIT>' ) <EOL> parse_value = getattr ( cls , '<STR_LIT>' ) <EOL> return GraphQLScalarType ( <EOL> name = cls . _meta . type_name , <EOL> description = cls . _meta . description , <EOL> serialize = serialize , <EOL> parse_value = parse_value , <EOL> parse_literal = parse_literal <EOL> ) </s>
