From c4ddd10285350bdc5c1c764299f6e6b373d05d93 Mon Sep 17 00:00:00 2001 From: Piotr Date: Wed, 29 Jun 2022 22:32:37 +0200 Subject: [PATCH] Revert back `class` snippet Change old, not working way of handling class constructor arguments to simpler, old one. --- snippets/base.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/snippets/base.json b/snippets/base.json index dbfcdcd..c32a75d 100644 --- a/snippets/base.json +++ b/snippets/base.json @@ -52,8 +52,7 @@ "\t\"\"\"${3:docstring for $1.}\"\"\"", "\tdef __init__(self, ${4:arg}):", "\t\t${5:super($1, self).__init__()}", - "\t${4/([^,=]+)(?:=[^,]+)?(,\\s*|)/\tself.$1 = $1${2:+\n\t}/g}", - "\n\t$0" + "\t\tself.$4 = $4" ], "description" : "Code snippet for a class definition." },