From 2e878585740d2be0f9979a3c7ddd3bde353a724a Mon Sep 17 00:00:00 2001 From: awais qureshi Date: Tue, 19 Mar 2024 13:20:58 +0500 Subject: [PATCH] build: adding python3.12 support. --- drag_and_drop_v2/drag_and_drop_v2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drag_and_drop_v2/drag_and_drop_v2.py b/drag_and_drop_v2/drag_and_drop_v2.py index 2321bc6d..4d1f5644 100644 --- a/drag_and_drop_v2/drag_and_drop_v2.py +++ b/drag_and_drop_v2/drag_and_drop_v2.py @@ -515,7 +515,7 @@ def _get_block_id(self): - In the workbench, use the usage_id. """ if hasattr(self, 'location'): - return self.location.html_id() # pylint: disable=no-member + return self.location.html_id() # pylint: disable=no-member,useless-suppression else: return six.text_type(self.scope_ids.usage_id) @@ -581,7 +581,7 @@ def do_attempt(self, data, suffix=''): # pylint: disable=unused-argument self._validate_do_attempt() self.attempts += 1 - # pylint: disable=fixme + # pylint: disable=fixme,useless-suppression # TODO: Refactor this method to "freeze" item_state and pass it to methods that need access to it. # These implicit dependencies between methods exist because most of them use `item_state` or other # fields, either as an "input" (i.e. read value) or as output (i.e. set value) or both. As a result, @@ -712,7 +712,7 @@ def has_submission_deadline_passed(self): functionality. """ if hasattr(self, "has_deadline_passed"): - return self.has_deadline_passed() # pylint: disable=no-member + return self.has_deadline_passed() # pylint: disable=no-member,useless-suppression else: return False @@ -949,7 +949,7 @@ def _mark_complete_and_publish_grade(self): """ Helper method to update `self.completed` and submit grade event if appropriate conditions met. """ - # pylint: disable=fixme + # pylint: disable=fixme,useless-suppression # TODO: (arguable) split this method into "clean" functions (with no side effects and implicit state) # This method implicitly depends on self.item_state (via is_correct and _learner_raw_score) # and also updates self.raw_earned if some conditions are met. As a result this method implies some order of