Show More
@@ -822,7 +822,7 b' class Type(ClassBasedTraitType):' | |||
|
822 | 822 | may be specified in a string like: 'foo.bar.MyClass'. |
|
823 | 823 | The string is resolved into real class, when the parent |
|
824 | 824 | :class:`HasTraits` class is instantiated. |
|
825 |
allow_none : bool |
|
|
825 | allow_none : bool [ default True ] | |
|
826 | 826 | Indicates whether None is allowed as an assignable value. Even if |
|
827 | 827 | ``False``, the default value may be ``None``. |
|
828 | 828 | """ |
@@ -919,7 +919,7 b' class Instance(ClassBasedTraitType):' | |||
|
919 | 919 | Positional arguments for generating the default value. |
|
920 | 920 | kw : dict |
|
921 | 921 | Keyword arguments for generating the default value. |
|
922 | allow_none : bool | |
|
922 | allow_none : bool [default True] | |
|
923 | 923 | Indicates whether None is allowed as a value. |
|
924 | 924 | |
|
925 | 925 | Notes |
@@ -1404,7 +1404,7 b' class Container(Instance):' | |||
|
1404 | 1404 | The default value for the Trait. Must be list/tuple/set, and |
|
1405 | 1405 | will be cast to the container type. |
|
1406 | 1406 | |
|
1407 |
allow_none : |
|
|
1407 | allow_none : bool [ default False ] | |
|
1408 | 1408 | Whether to allow the value to be None |
|
1409 | 1409 | |
|
1410 | 1410 | **metadata : any |
@@ -1505,7 +1505,7 b' class List(Container):' | |||
|
1505 | 1505 | maxlen : Int [ default sys.maxsize ] |
|
1506 | 1506 | The maximum length of the input list |
|
1507 | 1507 | |
|
1508 |
allow_none : |
|
|
1508 | allow_none : bool [ default False ] | |
|
1509 | 1509 | Whether to allow the value to be None |
|
1510 | 1510 | |
|
1511 | 1511 | **metadata : any |
@@ -1580,7 +1580,7 b' class Tuple(Container):' | |||
|
1580 | 1580 | will be cast to a tuple. If `traits` are specified, the |
|
1581 | 1581 | `default_value` must conform to the shape and type they specify. |
|
1582 | 1582 | |
|
1583 |
allow_none : |
|
|
1583 | allow_none : bool [ default False ] | |
|
1584 | 1584 | Whether to allow the value to be None |
|
1585 | 1585 | |
|
1586 | 1586 | **metadata : any |
General Comments 0
You need to be logged in to leave comments.
Login now