Fix quality failures with pylint 2.13.5 (#30197)

* build: update pylint-checks ci workflow
* fix: fix quality failures with new pylint version
* chore: remove pylint constraint
* chore: Updating Python Requirements (#30196)
Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
This commit is contained in:
Usama Sadiq
2022-04-07 13:59:44 +05:00
committed by GitHub
parent c884a3a995
commit 80f9f1de7a
15 changed files with 28 additions and 28 deletions

View File

@@ -66,6 +66,6 @@ class ContentTypeGatingFieldOverride(FieldOverrideProvider):
return original_group_access
@classmethod
def enabled_for(cls, course):
def enabled_for(cls, course): # pylint: disable=arguments-differ
"""Check our stackable config for this specific course"""
return ContentTypeGatingConfig.enabled_for_course(course_key=course.scope_ids.usage_id.course_key)

View File

@@ -38,6 +38,6 @@ class ShowAnswerFieldOverride(FieldOverrideProvider):
return mapping.get(current_show_answer_value, default)
@classmethod
def enabled_for(cls, course):
def enabled_for(cls, course): # pylint: disable=arguments-differ
""" Enabled only for Self-Paced courses using Personalized User Schedules. """
return course and course.self_paced and RELATIVE_DATES_FLAG.is_enabled(course.id)