Skip to content

Commit

Permalink
build: adding python3.12 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
awais786 committed Mar 19, 2024
1 parent 9701afc commit 2e87858
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drag_and_drop_v2/drag_and_drop_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2e87858

Please sign in to comment.