From c6a8dc87aa15de637951b44d46677303c4b01482 Mon Sep 17 00:00:00 2001 From: driverczn Date: Wed, 23 Dec 2020 11:09:27 +0800 Subject: [PATCH] fix class def snippets --- snippets/python.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/snippets/python.json b/snippets/python.json index 4862680..7cbdaf5 100644 --- a/snippets/python.json +++ b/snippets/python.json @@ -143,16 +143,16 @@ ], "description": "Code snippet for a function definition" }, - "def(class method)": { - "prefix": "def(class method)", + "def/class_method": { + "prefix": "def/class_method", "body": [ "def ${1:funcname}(self, ${2:parameter_list}):", "\t${3:pass}" ], "description": "Code snippet for a class method" }, - "def(static class method)": { - "prefix": "def(static class method)", + "def/static_class_method": { + "prefix": "def/static_class_method", "body": [ "@staticmethod", "def ${1:funcname}(${2:parameter_list}):", @@ -160,8 +160,8 @@ ], "description": "Code snippet for a static class method" }, - "def(abstract class method)": { - "prefix": "def(abstract class method)", + "def/abstract_class_method": { + "prefix": "def/abstract_class_method", "body": [ "def ${1:funcname}(self, ${2:parameter_list}):", "\traise NotImplementedError"