You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Indentation not made after a function parameter list with a type hint #1461
If we have the python code def foo(x: int):, then indentation breaks, even if we were to fix the second rule.
I'd like to ensure we have covered all possible scenarios in this issue that can be used as test cases for each of the rules. Unfortunately we don't have any tests for these rules and I'm not comfortable making changes to this.
Time to start hunting down all issues related to indentation and prepare a list of test cases/issues.
Activity
DonJayamanne commentedon Apr 26, 2018
Time to start writing unit tests for this.
DonJayamanne commentedon Apr 26, 2018
Here's what we have today:
If we have the python code
def foo(x: int):, then indentation breaks, even if we were to fix the second rule.I'd like to ensure we have covered all possible scenarios in this issue that can be used as test cases for each of the rules. Unfortunately we don't have any tests for these rules and I'm not comfortable making changes to this.
Time to start hunting down all issues related to indentation and prepare a list of test cases/issues.
nottoseethesun commentedon May 10, 2018
Is this unrelated to microsoft/monaco-editor#612 ?
DonJayamanne commentedon May 24, 2018
This seems to be caused by the implementation of editor.formatOnType