PY-43889 Expand 'main' live template only at top-level

GitOrigin-RevId: bcf272b5032a6f9ee4143a38cf7cc6da965053f4
This commit is contained in:
Andrey Vlasovskikh
2021-02-28 17:10:01 +03:00
committed by intellij-monorepo-bot
parent dcb086ae4b
commit ff7ead9b79
13 changed files with 48 additions and 13 deletions

View File

@@ -0,0 +1 @@
def main<caret>

View File

@@ -0,0 +1 @@
def main <caret>

View File

@@ -0,0 +1 @@
import main<caret>

View File

@@ -0,0 +1 @@
import main <caret>

View File

@@ -0,0 +1,2 @@
if __name__ == '__main__':
main<caret>

View File

@@ -0,0 +1,2 @@
if __name__ == '__main__':
main <caret>

View File

@@ -0,0 +1 @@
main<caret>

View File

@@ -0,0 +1,2 @@
if __name__ == '__main__':
<caret>