Skip to content

Commit

Permalink
flake8 2: electric imperativemoodaloo
Browse files Browse the repository at this point in the history
  • Loading branch information
ESadek-MO committed Nov 24, 2023
1 parent 404aa26 commit 525793b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions esmf_regrid/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ class NormType(Enum):


def check_method(method):
"""
Checks that method is a member of the `Constants.Method` enim, else raises an error.
"""
"""Checks that method is a member of the `Constants.Method` enum or raises an error."""
if method in method_dict.keys():
result = method_dict[method]
elif method in method_dict.values():
Expand All @@ -50,9 +48,7 @@ def check_method(method):


def check_norm(norm):
"""
Checks that normtype is a member of the `Constants.NormType` enum, else raises an error.
"""
"""Checks that normtype is a member of the `Constants.NormType` enum or raises an error."""
if norm in norm_dict.keys():
result = norm_dict[norm]
elif norm in norm_dict.values():
Expand Down

0 comments on commit 525793b

Please sign in to comment.