From 12ba20764ef020308a4cd88fa7ccf040888b49a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Wed, 6 Nov 2024 04:56:53 -0500 Subject: [PATCH] fix(python): Fix typing for SchemaDefinition (#19647) --- py-polars/polars/_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-polars/polars/_typing.py b/py-polars/polars/_typing.py index 67a06a2c689e..d614c1276e8f 100644 --- a/py-polars/polars/_typing.py +++ b/py-polars/polars/_typing.py @@ -72,7 +72,7 @@ def __arrow_c_stream__(self, requested_schema: object | None = None) -> object: ] SchemaDefinition: TypeAlias = Union[ - Mapping[str, Union[PolarsDataType, PythonDataType]], + Mapping[str, Union[PolarsDataType, PythonDataType, None]], Sequence[Union[str, tuple[str, Union[PolarsDataType, PythonDataType, None]]]], ] SchemaDict: TypeAlias = Mapping[str, PolarsDataType]