allow_None
not enforced when set to False
and the default value is None
#870
Labels
type-bug
Bug report
Setting
allow_None
toFalse
when thedefault
Parameter value isNone
automatically sets it toTrue
. I believe Param shouldn't be doing that, whenallow_None
is explicitly set toFalse
this value should be enforced. The annoying bit being that for Parameters whose defaultdefault
value isNone
(likeCallable
below) you'd have to provide a value that is notNone
. Unless this applies only after the Parameter has been instantiated, to allow it to be instantiated withNone
as the value fordefault
withallow_None=False
, but preventing it to be set toNone
afterwards, which I believe is what you can do now withObjectSelector
.The text was updated successfully, but these errors were encountered: