{"record":{"id":"7f7e15531a8e3176","repo":"pola-rs/polars","slug":"didn-t-recognize-attribute","errorCode":null,"errorMessage":"didn't recognize attribute","messagePattern":"didn't recognize attribute","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pyo3-polars/pyo3-polars-derive/src/attr.rs","lineNumber":54,"sourceCode":"\nimpl Parse for ExprsFunctionOptions {\n    fn parse(input: ParseStream<'_>) -> syn::Result<Self> {\n        let mut options = ExprsFunctionOptions::default();\n\n        while !input.is_empty() {\n            let lookahead = input.lookahead1();\n\n            if lookahead.peek(keywords::output_type) {\n                let attr = input.parse::<OutputAttribute>()?;\n                options.output_dtype = Some(attr.value)\n            } else if lookahead.peek(keywords::output_type_func) {\n                let attr = input.parse::<OutputFuncAttribute>()?;\n                options.output_type_fn = Some(attr.value)\n            } else if lookahead.peek(keywords::output_type_func_with_kwargs) {\n                let attr = input.parse::<OutputFuncAttributeWithKwargs>()?;\n                options.output_type_fn_kwargs = Some(attr.value)\n            } else {\n                panic!(\"didn't recognize attribute\")\n            }\n        }\n        Ok(options)\n    }\n}\n","sourceCodeStart":36,"sourceCodeEnd":60,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/pyo3-polars/pyo3-polars-derive/src/attr.rs#L36-L60","documentation":"Attribute-parser failure in the #[polars_expr] derive support (attr.rs): while parsing the proc-macro attribute options (output_type, output_type_func, camelize, ...), the lookahead encountered a token that matches none of the recognised option keywords, so the attribute stream is malformed.","triggerScenarios":"Thrown at pyo3-polars/pyo3-polars-derive/src/attr.rs:54 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use only attributes recognised by the derive macro; check the supported attribute names in pyo3-polars-derive and fix the attribute."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b5d73fd00236295624374b075d16b1fe6ec6df9","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}