Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa6d71e

Browse files
committed
add def overloading methode (dol)
I add it because I use it many times a day -not only for the `__init__` method- this snippet is very useful to me, no need to call super and handle all args and kwargs, and no more typo errors :D
1 parent 9b6ee51 commit fa6d71e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

snippets/python.snippets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,6 @@ snippet epydoc
201201

202202
@raise e: ${0: Description}
203203
"""
204+
snippet dol
205+
def ${1:__init__}(self, *args, **kwargs):
206+
super(${0:ClassName}, self).$1(*args, **kwargs)

0 commit comments

Comments
 (0)