codingame_tools.client.common.protocol.clash_of_code_description¶
clash_of_code_description
¶
JSON-serializable dataclasses for the ClashOfCodeDescription service's getClashDescription Codingame API method.
CgHtml
module-attribute
¶
CgHtml = str
Rendered HTML for display of the problem statement, input/output descriptions, and constraints. This is derived from the CgMarkdown content. It is rendered by the server and returned in the API response.
CgClashDescription
dataclass
¶
CgClashDescription(description, extra_data=dict())
Bases: JSONWizardX
Localized help/explainer content for Clash of Code, as returned by getClashDescription.
description
instance-attribute
¶
description
HTML statement content, keyed by locale ID as a string (e.g. "1" observed containing French content, "2" observed containing English content--the exact ID-to-locale mapping is unconfirmed). Typed as a plain dict rather than the recursive JsonDict alias, since dataclass_wizard 1.0.0 corrupts nested dict values loaded through that self-referential Union.