{"record":{"id":"05ac13ba4d80f049","repo":"microsoft/qlib","slug":"this-type-of-input-is-not-supported-05ac13","errorCode":null,"errorMessage":"This type of input is not supported","messagePattern":"This type of input is not supported","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"qlib/utils/time.py","lineNumber":127,"sourceCode":"        return False\n    else:\n        raise NotImplementedError(f\"please implement the is_single_value func for {region}\")\n\n\nclass Freq:\n    NORM_FREQ_MONTH = \"month\"\n    NORM_FREQ_WEEK = \"week\"\n    NORM_FREQ_DAY = \"day\"\n    NORM_FREQ_MINUTE = \"min\"  # using min instead of minute for align with Qlib's data filename\n    SUPPORT_CAL_LIST = [NORM_FREQ_MINUTE, NORM_FREQ_DAY]  # FIXME: this list should from data\n\n    def __init__(self, freq: Union[str, \"Freq\"]) -> None:\n        if isinstance(freq, str):\n            self.count, self.base = self.parse(freq)\n        elif isinstance(freq, Freq):\n            self.count, self.base = freq.count, freq.base\n        else:\n            raise NotImplementedError(f\"This type of input is not supported\")\n\n    def __eq__(self, freq):\n        freq = Freq(freq)\n        return freq.count == self.count and freq.base == self.base\n\n    def __str__(self):\n        # trying to align to the filename of Qlib: day, 30min, 5min, 1min...\n        return f\"{self.count if self.count != 1 or self.base != 'day' else ''}{self.base}\"\n\n    def __repr__(self) -> str:\n        return f\"{self.__class__.__name__}({str(self)})\"\n\n    @staticmethod\n    def parse(freq: str) -> Tuple[int, str]:\n        \"\"\"\n        Parse freq into a unified format\n\n        Parameters","sourceCodeStart":109,"sourceCodeEnd":145,"githubUrl":"https://github.com/microsoft/qlib/blob/79633dd9506ea689e5400dea0197717b5b3d74b7/qlib/utils/time.py#L109-L145","documentation":"Error \"This type of input is not supported\" thrown in microsoft/qlib.","triggerScenarios":"This error is raised at qlib/utils/time.py:127 when the guard condition fails: \"This type of input is not supported\". It triggers when the code path receives input or a state that violates the precondition checked at this point — e.g. an unimplemented abstract method being called, an unsupported argument type/value, or an invalid configuration. To avoid it, satisfy the documented precondition before this call: implement the required method in your subclass, or pass a supported value of the expected type as described by the message.","commonSituations":"See trigger scenarios.","solutions":["Pass a supported input type (e.g. pd.Timestamp, str, or datetime) to the time utility.","Convert your input to pd.Timestamp before calling the function."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"79633dd9506ea689e5400dea0197717b5b3d74b7","analyzedAt":"2026-08-15T07:01:27.511Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}