diff --git a/leapp/models/fields/__init__.py b/leapp/models/fields/__init__.py index 622b9eee7..31c09168d 100644 --- a/leapp/models/fields/__init__.py +++ b/leapp/models/fields/__init__.py @@ -46,7 +46,7 @@ def __init__(self, default=None, help=None): # noqa; pylint: disable=redefined- self._nullable = False self._default = default - if type(self) == Field: + if type(self) == Field: # noqa; raise ModelMisuseError("Do not use this type directly.") def _validate_model_value(self, value, name):