attr.ib(converter=)
appears to cause mypy to lose generic types for __init__
function.
#8417
Labels
attr.ib(converter=)
appears to cause mypy to lose generic types for __init__
function.
#8417
attr_test.py
:Output:
I would expect
attr_test.py
to typecheck cleanly and for the signature ofBar.__init__
to bedef (self: attr_test.Bar, things: typing.Iterable[str])
. I'm guessing mypy created a new type_T_co`1
that's something likeTypeVar('T', bound=str, covariant=True)
but it doesn't seem like that's being used later.The text was updated successfully, but these errors were encountered: