Use 'NoneType' rather than 'none'.