Python documentation isn't inserted in the right area
Python documentation is always inserted after the first line and not in the correct position.
This can be a problem especially when using popular formatting tools such as black.
For example:
def sample_function(
value: int,
text: str
):
return value + 1
Would be inserted incorrectly.
This is happening on MacOS12 with Apple M1 chip in VSCode.
Same is happening on Apple M1 chip on PyCharm.
I have a MacBook as well but on Intel, not sure platform is the problem. I see this incorrect placement problem on both VSCode and PyCharm.
Things that trip it up are multi-line function arguments (cutting off that later lines) and also function decorators (inserting after the decorator instead of before the body).