autopep8 icon indicating copy to clipboard operation
autopep8 copied to clipboard

List with negative integers not formatted correctly

Open maltekliemann opened this issue 3 years ago • 0 comments

very_long_variable_name = [1231980429, -23183829038120, -32189308390, -1382928391083290, 18239018391203892, -78129380391839201, 714128390283, -23138290831]

gets simplified to

very_long_variable_name = [1231980429, -
                           23183829038120, -
                           32189308390, -
                           1382928391083290, 18239018391203892, -
                           78129380391839201, 714128390283, -
                           23138290831]

This is not as expected.

Command Line and Configuration

Command Line

$ autopep8 -a file.py

Your Environment

  • Python version: Python 3.7.8
  • autopep8 version: autopep8 1.5.6 (pycodestyle: 2.7.0)
  • Platform: macOS

maltekliemann avatar May 20 '21 17:05 maltekliemann