Files
openide/python/testData/formatter/blankLinesAfterTopLevelImportsBeforeClassWithPrecedingComments.py
Mikhail Golubev 67ea7e9c03 PY-24220 Properly select minimum number of blanks after top-level imports
Namely, select the maximum number of empty lines between the settings
for the minimum number of blank lines surrounding top-level classes and
functions and the one for top-level imports.

We could give precedence to the preference for top-level imports, but it
would break existing formatting and lead to numerous pycodestyle.py
complaints because it defaults to only one blank line, and, according
to the PEP, there should be two in case of functions and classes
immediately following the import block.
2017-07-28 15:23:31 +03:00

9 lines
72 B
Python

import sys
# some comment
# for
# the class
class C:
x = sys.path