This because setting valid_type to a particular value, automatically makes the namespace dynamic:
valid_type
Not sure if this is part of the aiida-core docs, but may be useful to add if not yet the case.
aiida-core