Skip to content

Commit

Permalink
add def overloading methode (dol)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
WnP committed Apr 9, 2014
1 parent 9b6ee51 commit fa6d71e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions snippets/python.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,6 @@ snippet epydoc

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

0 comments on commit fa6d71e

Please sign in to comment.