Whatang
3/2/2019 - 2:28 PM

Python class using attr

VSCode snippet for creating a class using attr.

"Class using attr": {
		"prefix": "attrclass",
		"body": [
			"@attr.s",
			"class ${1:classname}(${2:parentclass}):",
			"\t${3:attribute} = attr.ib($0)"
		],
		"description": "Code snippet for a class made with attrs"
	}