Skip to content

Commit

Permalink
squash! stdlib.run: Fix problems when an executable is missing
Browse files Browse the repository at this point in the history
Make pylint happy (set noqa for E721 for the check the Fields is not
created directly).
The "isinstance" function has a different behaviour in this case
than we want.
  • Loading branch information
pirat89 committed Aug 1, 2023
1 parent 6ba8cc7 commit c9f2359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leapp/models/fields/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c9f2359

Please sign in to comment.