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
Declaring a function with a PEP 484 style type hint results in the newline not being properly indented.
For example, if I type
deffunction() ->None:
I would expect that after pressing the return key to insert a newline, I would end up
deffunction() ->None:
# here
however, I'm finding that I end up
deffunction() ->None:
# here
which is undesirable.
Indentation appears to be working just fine when I do not use PEP 484 type hints.
Extension version: 2018.4.0
VS Code version: Code 1.22.2 (3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9, 2018-04-12T16:32:53.389Z)
OS version: Darwin x64 17.4.0
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2900)
Load (avg)
1, 2, 2
Memory (System)
16.00GB (6.31GB free)
Process Argv
/Applications/Visual Studio Code.app/Contents/MacOS/Electron .
Screen Reader
no
VM
0%
The text was updated successfully, but these errors were encountered:
Issue Type: Bug
Declaring a function with a PEP 484 style type hint results in the newline not being properly indented.
For example, if I type
I would expect that after pressing the return key to insert a newline, I would end up
however, I'm finding that I end up
which is undesirable.
Indentation appears to be working just fine when I do not use PEP 484 type hints.
Extension version: 2018.4.0
VS Code version: Code 1.22.2 (3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9, 2018-04-12T16:32:53.389Z)
OS version: Darwin x64 17.4.0
System Info
The text was updated successfully, but these errors were encountered: