my-emacs-d/elpa/yasnippet-20160924.2001/snippets/python-mode/eq

7 lines
133 B
Plaintext
Raw Normal View History

# -*- mode: snippet -*-
# name: __eq__
# key: eq
# group: dunder methods
# --
def __eq__(self, other):
return self.$1 == other.$1