summaryrefslogtreecommitdiff
path: root/.emacs.d/snippets/python-mode/eq
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/snippets/python-mode/eq')
-rw-r--r--.emacs.d/snippets/python-mode/eq7
1 files changed, 7 insertions, 0 deletions
diff --git a/.emacs.d/snippets/python-mode/eq b/.emacs.d/snippets/python-mode/eq
new file mode 100644
index 0000000..e19c328
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/eq
@@ -0,0 +1,7 @@
1# -*- mode: snippet -*-
2# name: __eq__
3# key: eq
4# group: dunder methods
5# --
6def __eq__(self, other):
7 return self.$1 == other.$1 \ No newline at end of file