Descripción
Create a simple Python class with attributes
File Template: ❌
Prefix
class:simple
Scopes
python
Snippet de código
class ${1:MyClass}:
${2:attribute} = ${3:None}
def __init__(self, ${2:attribute}):
self.$2 = $2
def __str__(self):
return f"$2: {self.$2}"