Closed ortk95 closed 2 years ago
When --hang-closing is used, closing brackets for variables on non-indented lines are not corrected.
--hang-closing
#!/usr/bin/env python3 # -*- coding: utf-8 -*- x = [ None ] # Not corrected by autopep8 if True: y = [ None ] # Corrected by autopep8
Command Line
$ autopep8 --hang-closing test.py
@ortk95 Thanks for reporing. fix this on latest master branch. 68ad2003fedbe23934ed88d72d544fe267f46431
We will be releasing version 1.6 within the next few days.
Thanks!
When
--hang-closing
is used, closing brackets for variables on non-indented lines are not corrected.Python Code
Input
Output
Command Line and Configuration
Command Line
Your Environment