From 005379d0c614fda97e7ea341b385299f9c77f8ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B4mulo=20Penido?= Date: Thu, 21 Sep 2023 09:47:19 -0300 Subject: [PATCH] style: fix pylint --- openedx_tagging/core/tagging/models/base.py | 1 - openedx_tagging/core/tagging/rest_api/v1/views.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx_tagging/core/tagging/models/base.py b/openedx_tagging/core/tagging/models/base.py index f102cfce..abb4eae1 100644 --- a/openedx_tagging/core/tagging/models/base.py +++ b/openedx_tagging/core/tagging/models/base.py @@ -458,7 +458,6 @@ def _check_new_tag_count(new_tag_count: int) -> None: _(f"Cannot add more than 100 tags to ({object_id}).") ) - if not isinstance(tags, list): raise ValueError(_(f"Tags must be a list, not {type(tags).__name__}.")) diff --git a/openedx_tagging/core/tagging/rest_api/v1/views.py b/openedx_tagging/core/tagging/rest_api/v1/views.py index 9ab14aa8..d23be71a 100644 --- a/openedx_tagging/core/tagging/rest_api/v1/views.py +++ b/openedx_tagging/core/tagging/rest_api/v1/views.py @@ -499,4 +499,5 @@ def get_queryset(self) -> list[Tag]: # type: ignore[override] # This function is not called automatically self.pagination_class = self.get_pagination_class() - return result \ No newline at end of file + return result +