"""What do you want from me, Pylint?"""
import pathlib
from typing import Tuple
def take_path(arg: pathlib.Path = None):
print(arg)
def take_str(arg: str = None):
print(arg)
def take_tuple(arg: Tuple[int, str] = None):
print(arg)
def take_tuple_newline(arg: Tuple[
int, str] = None):
print(arg)
pylint complains about spaces around keyword argument assignment
C: 20, 0: No space allowed around keyword argument assignment
int, str] = None):
^ (bad-whitespace)
There have been many previous isssues about similar problems, e.g. #1429 #1525 #1543
Looks like PR #1430 for 1.8 (backported to 1.7 in #1679) didn't resolve the whitespace issue completely.
pylint doesn't complain about spaces around keyword argument assignment
Using config file /home/mateusz/.pylintrc
pylint 1.8.1,
astroid 1.6.0
Python 3.6.1 (default, May 26 2017, 19:35:58)
[GCC 5.4.0 20160609]
Thanks for the report! I can repro this and am working on it
Most helpful comment
Thanks for the report! I can repro this and am working on it