{"record":{"id":"092904828736f192","repo":"pola-rs/polars","slug":"polars-testing-parametric-requires-the-hypothesis","errorCode":null,"errorMessage":"polars.testing.parametric requires the 'hypothesis' module\nPlease install it using the command: pip install hypothesis","messagePattern":"polars\\.testing\\.parametric requires the 'hypothesis' module\nPlease install it using the command: pip install hypothesis","errorType":"exception","errorClass":"ModuleNotFoundError","httpStatus":null,"severity":"error","filePath":"py-polars/src/polars/testing/parametric/__init__.py","lineNumber":8,"sourceCode":"from polars._dependencies import _HYPOTHESIS_AVAILABLE\n\nif not _HYPOTHESIS_AVAILABLE:\n    msg = (\n        \"polars.testing.parametric requires the 'hypothesis' module\\n\"\n        \"Please install it using the command: pip install hypothesis\"\n    )\n    raise ModuleNotFoundError(msg)\n\nfrom polars.testing.parametric.profiles import load_profile, set_profile\nfrom polars.testing.parametric.strategies import (\n    column,\n    dataframes,\n    dtypes,\n    lists,\n    series,\n)\n\n__all__ = [\n    # strategies\n    \"dataframes\",\n    \"series\",\n    \"column\",\n    \"dtypes\",\n    \"lists\",\n    # profiles","sourceCodeStart":1,"sourceCodeEnd":26,"githubUrl":"https://github.com/pola-rs/polars/blob/5d8ebabf11caea54a5c29178a64a058762f49766/py-polars/src/polars/testing/parametric/__init__.py#L1-L26","documentation":"Import-time guard for polars.testing.parametric: the module checks _HYPOTHESIS_AVAILABLE and raises ModuleNotFoundError before importing any strategies when the optional hypothesis dependency is missing. It fires merely on `import polars.testing.parametric` in an environment without hypothesis installed.","triggerScenarios":"Thrown at py-polars/src/polars/testing/parametric/__init__.py:8 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install hypothesis: `pip install hypothesis` before using `polars.testing.parametric`."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5d8ebabf11caea54a5c29178a64a058762f49766","analyzedAt":"2026-08-19T12:15:06.350Z","contentChangedAt":"2026-08-19T12:15:06.350Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}