1

improve python snippets

This commit is contained in:
Evan Pratten 2023-11-21 12:42:02 -05:00
parent f453d5b33e
commit 1b5c305a22

View File

@ -56,15 +56,19 @@
"body": "from pathlib import Path"
},
"Get a logger instance": {
"prefix": "getlogger",
"body": "logger = logging.getLogger(__name__)"
"prefix": "logger",
"body": "logger = logging.getLogger(${1|__name__,'werkzeug'|})"
},
"Import dataclass": {
"prefix":"impdataclass",
"body": "from dataclasses import dataclass, field"
"body": "from dataclasses import dataclass${1:, field}"
},
"Import datetime": {
"prefix":"impdatetime",
"body": "from datetime import datetime"
},
"Import enums": {
"prefix":"impenum",
"body": "from enum import Enum, auto"
"body": "from enum import Enum${1:, auto}"
}
}