diff --git a/snippets/python.snippets b/snippets/python.snippets index ac9573b..c221f46 100644 --- a/snippets/python.snippets +++ b/snippets/python.snippets @@ -204,3 +204,7 @@ snippet epydoc snippet dol def ${1:__init__}(self, *args, **kwargs): super(${0:ClassName}, self).$1(*args, **kwargs) +snippet kwg + self.${1:var_name} = kwargs.get('$1', ${2:None}) +snippet lkwg + ${1:var_name} = kwargs.get('$1', ${2:None})