{"record":{"id":"c89bd7dc78d033da","repo":"pola-rs/polars","slug":"module-name-r-has-no-attribute-name-r-c89bd7","errorCode":null,"errorMessage":"module {__name__!r} has no attribute {name!r}","messagePattern":"module (.+?) has no attribute (.+?)","errorType":"exception","errorClass":"AttributeError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/type_aliases.py","lineNumber":24,"sourceCode":"\nfrom typing import Any\n\nimport polars._typing as plt\nfrom polars._utils.deprecation import issue_deprecation_warning\n\n\ndef __getattr__(name: str) -> Any:\n    if name in dir(plt):\n        issue_deprecation_warning(\n            \"the `polars.type_aliases` module was deprecated in version 1.0.0.\"\n            \" The type aliases have moved to the `polars._typing` module to explicitly mark them as private.\"\n            \" Please define your own type aliases, or temporarily import from the `polars._typing` module.\"\n            \" A public `polars.typing` module will be added in the future.\",\n        )\n        return getattr(plt, name)\n\n    msg = f\"module {__name__!r} has no attribute {name!r}\"\n    raise AttributeError(msg)\n","sourceCodeStart":6,"sourceCodeEnd":25,"githubUrl":"https://github.com/pola-rs/polars/blob/9b5d73fd00236295624374b075d16b1fe6ec6df9/py-polars/src/polars/type_aliases.py#L6-L25","documentation":"Module-level __getattr__ fallback in polars.type_aliases: an attribute was looked up that is neither a real member of the module nor a known alias in polars._typing. The deprecated forwarding shim only re-exports names that exist in polars._typing; anything else is genuinely missing. Import from polars._typing or define your own alias.","triggerScenarios":"Thrown at py-polars/src/polars/type_aliases.py:24 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Import the attribute from its actual module instead; `polars.type_aliases` only re-exports a fixed set of names and was removed in newer versions."],"exampleFix":null,"handlingStrategy":"type-guard","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-23T08:17:48.524Z"}