Skip to content

Commit c73c019

Browse files
committed
fix: lint issues
1 parent 04bdf1d commit c73c019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmodule/graders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ def correctness_available(cls, show_correctness='', due_date=None, has_staff_acc
492492
"""
493493
Returns whether correctness is available now, for the given attributes.
494494
"""
495-
if show_correctness == cls.NEVER or show_correctness == cls.NEVER_BUT_INCLUDE_GRADE:
495+
if show_correctness in (cls.NEVER, cls.NEVER_BUT_INCLUDE_GRADE):
496496
return False
497497
elif has_staff_access:
498498
# This is after the 'never' check because course staff can see correctness

0 commit comments

Comments
 (0)