Skip to content

Space removed before () when used as default function argument #60

@roganov

Description

@roganov

This

import typing as t

def f1(x: t.Tuple[int, ...] = ()):
    pass

becomes this

import typing as t

def f1(x: t.Tuple[int, ...] =()):
    pass

Operating system: Ubuntu
Python version: 3.6.3
Black version: 18.3a3
Does also happen on master: yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions