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
type: <class 'str'>, value: b
type: <class 'str'>, value: c
Mypy output
src/pandera_typing.py:15: error: Argument 1 to "print_string" has incompatible type "float"; expected "str" [arg-type]
Found 1 error in 1 file (checked 1 source file)
Expected behavior
I would expect the type hinting to be consistent across the explicit and implicit column type annotation, and thus for Mypy to interpret the direct column annotation names as a strings.
Versions:
Python 3.11.0
pandas==2.2.0
pandas-stubs==2.1.4.231227
pandera==0.19.3
mypy 1.10.0 (compiled: yes)
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
Mypy throws an error when using DataFrameModel field names as strings with the direct column type annotations.
Code Sample, a copy-pastable example
Script output
Mypy output
Expected behavior
I would expect the type hinting to be consistent across the explicit and implicit column type annotation, and thus for Mypy to interpret the direct column annotation names as a strings.
Versions:
The text was updated successfully, but these errors were encountered: