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
t.py:5: error: Incompatible types in assignment (expression has type
"Union[Union[str, bytes, date, datetime, timedelta, bool, int, float, complex, Timestamp, Timedelta], Tuple[Hashable, ...]]",
variable has type "str")
for s in t.columns:
^
Found 1 error in 1 file (checked 1 source file)
To Reproduce
See above
Please complete the following information:
Version 1.5.2.230105
MyPy 0.991
The text was updated successfully, but these errors were encountered:
You have to use cast here for now. We are not tracking the type of values inside of an Index. This is on our TODO list. But even with your example, there is no way to know the dtype of t.columns for any particular DataFrame.
You'd get a similar error in your first example like this:
Describe the bug
Variant:
To Reproduce
See above
Please complete the following information:
1.5.2.230105
The text was updated successfully, but these errors were encountered: