Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/traitlets
/ C
Class
C
tests/test_traitlets.py:1818–1819 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1816
)
1817
def
test_allow_none_default_value(Trait):
1818
class
C(HasTraits):
1819
t = Trait(default_value=None, allow_none=True)
1820
1821
# test default value
1822
c = C()
Callers
14
test_deprecated_dynamic_initializer
Method · 0.70
test_dynamic_initializer
Method · 0.70
test_metaclass
Method · 0.70
test_validate_default
Method · 0.70
test_args_kw
Method · 0.70
test_allow_none_default_value
Function · 0.70
test_default_value
Function · 0.70
test_subclass_default_value
Function · 0.70
test_enum_no_default
Function · 0.70
test_observe_iterables
Function · 0.70
test_override_default
Function · 0.70
test_override_default_decorator
Function · 0.70
Calls
7
Enum
Class · 0.90
Type
Class · 0.90
List
Class · 0.90
Dict
Class · 0.90
Unicode
Class · 0.90
Int
Class · 0.90
SubclassTrait
Class · 0.85
Tested by
14
test_deprecated_dynamic_initializer
Method · 0.56
test_dynamic_initializer
Method · 0.56
test_metaclass
Method · 0.56
test_validate_default
Method · 0.56
test_args_kw
Method · 0.56
test_allow_none_default_value
Function · 0.56
test_default_value
Function · 0.56
test_subclass_default_value
Function · 0.56
test_enum_no_default
Function · 0.56
test_observe_iterables
Function · 0.56
test_override_default
Function · 0.56
test_override_default_decorator
Function · 0.56