emacs.d/etc/yasnippet/snippets/python-mode/derived_class

13 lines
311 B
Plaintext
Raw Normal View History

2022-12-27 10:45:55 +01:00
# -*- coding: utf-8 -*-
# Uses .yas-setup.el.
# name : derived class
# key : dcls
# expand-env: ((yas-indent-line 'fixed))
# --
class ${1:ClassName}(${2:object}):
"""${3:XXX}.${4:$(python-arguments-to-doc-string)}"""
def __init__(self, $4):
${4:$(python-arguments-to-self-init-string)}$0pass