Closed
Description
This is a continuation of #186 and, like that change, has also been reported to mypy. I propose reading onto the following line for comments:
import collections
from typing import DefaultDict, List
def test(pools):
really_long_attribute = collections.defaultdict(list)
# type: DefaultDict[str, List[str]]
for pool in pools:
pass # meaningful stuff in here
This seems clear enough and should require minimal changes to the parser. I'm happy to propose an amendment to the PEP, but I'd like to get some input first.
Metadata
Metadata
Assignees
Labels
No labels