From 3fcbb16aa955c5e3ed92262a68a6769aff5eb5ae Mon Sep 17 00:00:00 2001 From: Vladislav Rassokhin Date: Tue, 11 Apr 2023 14:22:42 +0200 Subject: [PATCH] [python] postfix templates: add .fore/.itere/.enum: add description (PY-27374) GitOrigin-RevId: af484fbec898c0b11501a4cd94c453339885be0b --- .../PyForEnumeratePostfixTemplate/after.py.template | 3 +++ .../PyForEnumeratePostfixTemplate/before.py.template | 2 ++ .../PyForEnumeratePostfixTemplate/description.html | 5 +++++ 3 files changed, 10 insertions(+) create mode 100644 python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/after.py.template create mode 100644 python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/before.py.template create mode 100644 python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/description.html diff --git a/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/after.py.template b/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/after.py.template new file mode 100644 index 000000000000..6b288820f54a --- /dev/null +++ b/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/after.py.template @@ -0,0 +1,3 @@ +def f(a): + for i, e in enumerate(a): + \ No newline at end of file diff --git a/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/before.py.template b/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/before.py.template new file mode 100644 index 000000000000..bd6f71f8b786 --- /dev/null +++ b/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/before.py.template @@ -0,0 +1,2 @@ +def f(a): + a.enum \ No newline at end of file diff --git a/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/description.html b/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/description.html new file mode 100644 index 000000000000..374b5154b7f8 --- /dev/null +++ b/python/pluginResources/postfixTemplates/PyForEnumeratePostfixTemplate/description.html @@ -0,0 +1,5 @@ + + +Iterates over the enumeration of the expression as source in the for statement. + + \ No newline at end of file