Skip to content

Support multi-line # type: comments for inline types #4511

@stephenfin

Description

@stephenfin

#1102 provided a way to split # type: comments over multiple lines for functions, however, there doesn't seem to be such a thing to split markup for inline attributes. For example:

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions