Skip to content

Commit

Permalink
refactor: remove graded property shim
Browse files Browse the repository at this point in the history
graded property method is going to be inherited by XBlocks from the
InheritableFieldsMixin (used to be called InheritanceMixin).
  • Loading branch information
Cup0fCoffee committed Jan 9, 2025
1 parent 06d88e3 commit b5dfb83
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions openedx/core/djangoapps/xblock/runtime/shims.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,17 +328,6 @@ def system(self):
)
return self.runtime

@property
def graded(self):
"""
Not sure what this is or how it's supposed to be set. Capa seems to
expect a 'graded' attribute to be present on itself. Possibly through
contentstore's update_section_grader_type() ?
"""
if self.scope_ids.block_type != 'problem':
raise AttributeError(".graded shim is only for capa")
return False

# Attributes defined by XModuleMixin and sometimes used by the LMS
# Set sensible defaults.
# If any of these are meant to be used in new stuff (are not deprecated)
Expand Down

0 comments on commit b5dfb83

Please sign in to comment.