Skip to content

Commit 7b17b4e

Browse files
committed
warnings for usedefault=False
1 parent a01d4b4 commit 7b17b4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/checkspecs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ def test_specs(self, uri):
272272
if key == 'mandatory' and trait.mandatory is not None and not trait.mandatory:
273273
bad_specs.append(
274274
[uri, c, 'Inputs', traitname, 'mandatory=False'])
275+
if key == "usedefault" and trait.__dict__[key] == False:
276+
bad_specs.append(
277+
[uri, c, 'Inputs', traitname, 'usedefault=False'])
275278
# checking if traits that have default_value different that the trits default one
276279
# also have `usedefault` specified;
277280
# excluding TraitCompound

0 commit comments

Comments
 (0)