HF RL Explorer

Implement a custom Hex scalar type for the graphene GraphQL library. This scalar should serialize raw bytes…

Implement a custom Hex scalar type for the graphene GraphQL library. This scalar should serialize raw bytes…: a task in r2e-code-instruct-qwen3.5 (Harbor dataset). Requirements: - Subclass graphene.Scalar and define serialize(self, value) that encodes bytes to hex format. - Define parse(self…

The task

Requirements: - Subclass `graphene.Scalar` and define `serialize(self, value)` that encodes bytes to hex format. - Define `parse(self, value)` that decodes hex string to bytes. - Implement `parse_literal(self, node, _variables=None)` to validate input is a string node. - Raise `GraphQLError` on invalid input during…

Part of Essacheez/r2e-code-instruct-qwen3.5.