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
This looks like a mypy error. Both class list and namedtuple() look to be correctly typed in typeshed and should work together. I assume that namedtuple is specially handled by mypy, because of its special semantics.
Reference: pandas-dev/pandas#29114 (comment)
list('abc')
should be inferred to be of type List[str]. However, we still get errors if used as the argument to a function.MRE -
Running mypy on the above gives the error
error: List or tuple literal expected as the second argument to namedtuple()
The text was updated successfully, but these errors were encountered: