emacs.d/etc/yasnippet/snippets/python-mode/base_class
2022-12-27 10:45:55 +01:00

13 lines
295 B
Plaintext

# -*- coding: utf-8 -*-
# Uses .yas-setup.el.
# name : base class
# key : bcls
# expand-env: ((yas-indent-line 'fixed))
# --
class ${1:ClassName}:
"""${2:XXX}.${3:$(python-arguments-to-doc-string)}"""
def __init__(self, $3):
${3:$(python-arguments-to-self-init-string)}$0pass