Skip to content

Commit 8cb5ff5

Browse files
Merge pull request #343 from minrk/any-allows-none
Any should allow None by default
2 parents 5a49dda + 6ed6bfb commit 8cb5ff5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

traitlets/traitlets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,7 @@ def make_dynamic_default(self):
18381838
class Any(TraitType):
18391839
"""A trait which allows any value."""
18401840
default_value = None
1841+
allow_none = True
18411842
info_text = 'any value'
18421843

18431844

0 commit comments

Comments
 (0)