Commit 2d0df95c authored by Ibouniyamine Nabihoudine's avatar Ibouniyamine Nabihoudine
Browse files

No commit message

No commit message
parent b3e4f54a
......@@ -591,7 +591,7 @@ class IntParameter(int, AbstractParameter):
val.is_None = False if default != None else True
for attr in int.__dict__:
func = getattr(int, attr)
if isinstance(func, collections.Callable) and attr not in ["__new__", "__init__", "__int__", "__getattribute__", "__setattribute__",
if isinstance(func, collections.Callable) and attr not in ["__new__", "__init__", "__int__", "__bool__", "__getattribute__", "__setattribute__",
"__eq__", "__ne__", "__nonzero__", "__str__", "__repr__", "__getnewargs__"]:
setattr(IntParameter, attr, none_decorator(func))
return val
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment