Open Issues Need Help
View All on GitHubAI Summary: This issue reports a type error when using `mypy` version 1.18 or higher, specifically for the `filename` argument of Python's built-in `compile` function. Mypy expects `str | bytes | PathLike[Any]` but encounters `str | Buffer | PathLike[Any]`, leading to an incompatibility. A minimal reproducible example demonstrates this regression, aiming to resolve the type mismatch for compatibility with newer `mypy` versions.
AI Summary: The issue reports `mypy` type errors ("No overload variant of 'where' of 'Series' matches argument types 'Series[bool]', 'None'") when using `pandas-stubs` versions 2.3.3 or higher. A minimal reproducible example demonstrates `Series.where(Series.notnull(), None)` failing type checks, while it passes with `pandas-stubs` 2.3.2. The problem affects the `altair` library and suggests investigating recent changes in the `pandas-stubs` repository to resolve the type incompatibility.