Skip to content

call super in HasTraits.__init__#174

Merged
minrk merged 1 commit intoipython:masterfrom
rmorshea:call_super_init
Feb 17, 2016
Merged

call super in HasTraits.__init__#174
minrk merged 1 commit intoipython:masterfrom
rmorshea:call_super_init

Conversation

@rmorshea
Copy link
Contributor

needed for multiple inheritance:

class B(object):

    def __init__(self):
        # do something

class A(HasTraits, B): pass

closes #113

@minrk minrk added this to the 4.2 milestone Feb 17, 2016
minrk added a commit that referenced this pull request Feb 17, 2016
call super in HasTraits.__init__
@minrk minrk merged commit c36d314 into ipython:master Feb 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Always call super in init

2 participants