Closed
Description
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 -
import collections
named_tuple = collections.namedtuple('Test', list('abc'))
Running mypy on the above gives the error error: List or tuple literal expected as the second argument to namedtuple()
Metadata
Metadata
Assignees
Labels
No labels