Skip to content

Commit

Permalink
fix: django 4.0 pylint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johanseto committed Feb 13, 2025
1 parent bf5c2f5 commit 29f3e37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion eox_nelp/notifications/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ class DueDateListFilter(DateFieldListFilter):
3) Next seven days: Records from now until 7 days in the future.
4) Next month: Records from now until 30 days in the future.
"""
# pylint: disable=too-many-arguments, too-many-positional-arguments

def __init__(self, field, request, params, model, model_admin, field_path): # pylint: disable=too-many-arguments
def __init__(self, field, request, params, model, model_admin, field_path):
"""Custom init method to modify inherited options"""
super().__init__(field, request, params, model, model_admin, field_path)
today = timezone.now()
Expand Down
2 changes: 1 addition & 1 deletion eox_nelp/openedx_filters/xapi/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def run_filter(self, transformer, result): # pylint: disable=arguments-differ,
updater = getattr(self, f"_update_{key}", None)

if updater:
updater(result, value)
updater(result, value) # pylint: disable=not-callable
else:
setattr(result, key, value)

Expand Down

0 comments on commit 29f3e37

Please sign in to comment.