void () { doTestByText(""" from typing import Self class Shape: def __init__(self, scale: float): self.scale = None @classmethod def from_config(cls, config: dict[str, float]) -> Self: return cls(config["scale"]) """); }