We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09ca954 commit 1c85d41Copy full SHA for 1c85d41
traitlets/traitlets.py
@@ -1060,7 +1060,7 @@ def setup_class(cls, classdict): # noqa
1060
elif type(trait) == Union and trait.default_value is None:
1061
cls._static_immutable_initial_values[name] = None
1062
elif (
1063
- type(trait) == Dict
+ isinstance(trait, Instance)
1064
and trait.default_args is None
1065
and trait.default_kwargs is None
1066
and trait.allow_none
0 commit comments