From 2e335653203668bc2e3f22ea33ded5b8d1ffe25e Mon Sep 17 00:00:00 2001 From: Usama Sadiq Date: Fri, 11 Jun 2021 19:49:17 +0500 Subject: [PATCH] fix: fixed the pylint violations causing quality failures (#27934) --- openedx/core/djangoapps/discussions/models.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/discussions/models.py b/openedx/core/djangoapps/discussions/models.py index 75ec49bf5975..66257c7f79f0 100644 --- a/openedx/core/djangoapps/discussions/models.py +++ b/openedx/core/djangoapps/discussions/models.py @@ -6,6 +6,7 @@ import logging from enum import Enum +from collections import namedtuple from django.core.exceptions import ValidationError from django.db import models from django.utils.translation import ugettext_lazy as _ @@ -16,7 +17,6 @@ from opaque_keys.edx.django.models import LearningContextKeyField from opaque_keys.edx.keys import CourseKey from simple_history.models import HistoricalRecords -from collections import namedtuple from openedx.core.djangoapps.config_model_utils.models import StackedConfigurationModel from openedx.core.djangoapps.content.course_overviews.models import CourseOverview @@ -26,7 +26,10 @@ DEFAULT_PROVIDER_TYPE = 'legacy' -ProviderExternalLinks = namedtuple('ProviderExternalLinks', ['learn_more', 'configuration', 'general', 'accessibility', 'contact_email']) +ProviderExternalLinks = namedtuple( + 'ProviderExternalLinks', + ['learn_more', 'configuration', 'general', 'accessibility', 'contact_email'] +) class Features(Enum):