I'm using the pyright-langserver with Neovim v0.7.0. It functions well, except I don't know how to correctly annotate the types in the following situation.
import pandas as pd
df = pd.DataFrame({'num_legs': [4, 2], 'num_wings': [0, 2]},index=['dog', 'hawk'])
for row in df.itertuples():
print(row.num_legs) # ■ Cannot access member "num_legs" for type "tuple[Any, ...]" Member "num_legs" is unknown
As you can see, I put a comment showing the error that pyright reports: Cannot access member "num_legs" for type "tuple[Any, ...]" Member "num_legs" is unknown
The code is valid in that it prints 4, then 2, as I would expect. How do I satisfy the type-checking?