Skip to content

Mypy incorrectly determines type #1358

Closed
@ilevkivskyi

Description

@ilevkivskyi

It looks like #815 has not been fixed completely, here is an example

from collections import defaultdict

# this is now fixed
defaultdict(list)

class MyDDict(defaultdict):
    pass

# and here we see the old bug again
# Argument 1 to "MyDDict" has incompatible type List[_T]; expected Callable[[], _VT]
MyDDict(list)

Metadata

Metadata

Assignees

Labels

bugmypy got something wrong

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions