Files
openide/python/testData/inspections/DefaultArgumentCommentsInsideParameters.py
Mikhail Golubev e855697cee PY-17392 Update specific PSI elements, instead of entire parameter and statement lists in the quickfix
Helper method PyUtil#addElementToStatementList moves old statement list
on the next line (below the header of the parent statement), if
necessary, *before* the new statement is inserted. If it's done
afterwards and new statement is multiline, it might not be properly
indented.
2015-10-30 15:59:44 +03:00

4 lines
152 B
Python

def func(x, # comment
mutable=<warning descr="Default argument value is mutable">[<caret>]</warning>):
"""Docstring."""
print(mutable)