python
Context:
user.community.lang.python.python.talon
| Spoken | Backend |
|---|---|
| [state] except {user.python_exception} | "except {python_exception}:" |
| [state] raise {user.python_exception} | user.insert_between("raise {python_exception}(", ")") |
| dock {user.python_docstring_fields} | insert("{python_docstring_fields}")edit.left() |
| dock returns type {user.code_type} | user.insert_between(":rtype ", ": {code_type}") |
| dock string | user.code_comment_documentation() |
| dock type {user.code_type} | user.insert_between(":type ", ": {code_type}") |
| dunder in it | "__init__" |
| from import | user.insert_snippet_by_name("importFromStatement") |
| import <user.code_libraries> | user.code_insert_library(code_libraries, "")key(end enter) |
| pie test | "pytest" |
| self taught | "self." |
| state (def | deaf | deft) | "def " |
| state except | "except " |
| state past | "pass" |
| state raise | "raise " |
| state try | "try:\\n" |