-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.json
More file actions
51 lines (51 loc) · 887 Bytes
/
python.json
File metadata and controls
51 lines (51 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"IPDB": {
"prefix": "ipdb",
"body": "import ipdb; ipdb.set_trace()",
"description": "IPDB"
},
"PDB": {
"prefix": "pdb",
"body": "import pdb; pdb.set_trace()",
"description": "PDB"
},
"Function": {
"prefix": "def",
"body": [
"def ${1:name}(${2:args}):",
" $0"
],
"description": "Function"
},
"Property": {
"prefix": "property",
"body": [
"@property",
"def ${1:name}(self):",
" $0"
],
"description": "Property"
},
"Property with Setter": {
"prefix": "property_with_setter",
"body": [
"@property",
"def ${1:name}(self):",
" $2",
"",
"@${1:name}.setter",
"def ${1:name}(self, value):",
" $0"
],
"description": "Property"
},
"Cached Property": {
"prefix": "cached_property",
"body": [
"@cached_property",
"def ${1:name}(self):",
" $0"
],
"description": "Cached Property"
}
}