Skip to content

Indentation with type annotations #130

@blueyed

Description

@blueyed
    def func(
        self, foo,
    ) -> typing.Tuple[
        typing.Union[StreamingResponse],

It is fine as:

    def func(
        self, foo,
    ) -> typing.Tuple[
        typing.Union[StreamingResponse],
    ]:
        pass

But should get an extra indent with:

    def func(
        self, foo,
    ) -> typing.Tuple[
        typing.Union[StreamingResponse]]:
        pass

Just like

    def func(
        self, foo):
        pass

is turned into:

    def func(
            self, foo):
        pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions