Skip to content

Commit

Permalink
Satisfy new linter warnings
Browse files Browse the repository at this point in the history
Linter started giving new warnings on Python 3.9, let's make it happy
again.
  • Loading branch information
matejmatuska committed Aug 10, 2023
1 parent 154e1c5 commit 17bd27e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
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) is Field:
raise ModelMisuseError("Do not use this type directly.")

def _validate_model_value(self, value, name):
Expand Down
11 changes: 9 additions & 2 deletions tests/scripts/test_utils_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@

from helpers import TESTING_REPOSITORY_NAME
from leapp.exceptions import CommandError
from leapp.utils.repository import requires_repository, to_snake_case, make_class_name, make_name,\
find_repository_basedir, get_repository_name, get_repository_metadata
from leapp.utils.repository import (
requires_repository,
to_snake_case,
make_class_name,
make_name,
find_repository_basedir,
get_repository_name,
get_repository_metadata,
)


def setup_module():
Expand Down

0 comments on commit 17bd27e

Please sign in to comment.