django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

error: "Collector" has no attribute "data"

Open benwhalley opened this issue 3 years ago • 0 comments

Mypy complains about this code:

collector = Collector(using="default")
collector.collect([self])
children = list(itertools.chain(*[v for k, v in collector.data.items()]))

saying error: "Collector" has no attribute "data"

I'm not sure what the most general type should be, but collectors do have a data attribute.

benwhalley avatar Feb 04 '22 11:02 benwhalley