You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect that mypy will succeed, but that the check_types decorator will validate the output at runtime and therefore will fail. However, this code runs, and gives me back a dataframe which is not consistent with the SchemaOut.
Is this correct behaviour, and should I only pipe to the final schema at the very end of a function?
If I dont pipe the dataframe to SchemaOut, the code will fail and pandera will catch the error at runtime, but then mypy will fail. It seems that the check_types decorator is not checking anymore when the types are already piped in the method.
I have this code, as stated in the docs:
I expect that mypy will succeed, but that the check_types decorator will validate the output at runtime and therefore will fail. However, this code runs, and gives me back a dataframe which is not consistent with the SchemaOut.
Is this correct behaviour, and should I only pipe to the final schema at the very end of a function?
If I dont pipe the dataframe to SchemaOut, the code will fail and pandera will catch the error at runtime, but then mypy will fail. It seems that the check_types decorator is not checking anymore when the types are already piped in the method.
Python version 3.10.11
pandas==2.2.0
pandas-stubs==2.1.4.231227
pandera==0.18.0
pydantic==2.6.0
pydantic_core==2.16.1
The text was updated successfully, but these errors were encountered: