File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 32
32
from IPython .utils .process import arg_split
33
33
from IPython .utils .py3compat import string_types , iteritems
34
34
from IPython .utils .text import dedent
35
- from traitlets import Bool , Dict , Instance , MetaHasTraits
35
+ from traitlets import Bool , Dict , Instance
36
36
from IPython .utils .warn import error
37
37
38
38
#-----------------------------------------------------------------------------
@@ -386,7 +386,7 @@ def register(self, *magic_objects):
386
386
if not m .registered :
387
387
raise ValueError ("Class of magics %r was constructed without "
388
388
"the @register_magics class decorator" )
389
- if type ( m ) in ( type , MetaHasTraits ):
389
+ if isinstance ( m , type ):
390
390
# If we're given an uninstantiated class
391
391
m = m (shell = self .shell )
392
392
You can’t perform that action at this time.
0 commit comments