wrong default value type in Schema.__init__
#22588
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Code
Issue description
schma.py
The branch after
else
here corresponds to aschema
parameter type ofIterable
orNone
(strictly speaking, in the case ofNoneType
).At the same time, the subsequent
for
statement indicates that theinput
here should beIterable[tuple[str, SchemaInitDataType]]
.Expected behavior
The default value after
else
should be()
rather than{}
.Installed versions
The text was updated successfully, but these errors were encountered: