From 39206948e88c7eb9c5ad9601c0fbe1cab647ab3c Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Wed, 15 Apr 2015 15:05:32 -0400 Subject: [PATCH] Fix contract on context argument --- common/djangoapps/xmodule_modifiers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/djangoapps/xmodule_modifiers.py b/common/djangoapps/xmodule_modifiers.py index 72adfa97a7..1b08ce1960 100644 --- a/common/djangoapps/xmodule_modifiers.py +++ b/common/djangoapps/xmodule_modifiers.py @@ -196,7 +196,7 @@ def grade_histogram(module_id): return grades -@contract(user=User, has_instructor_access=bool, block=XBlock, view=basestring, frag=Fragment, context=dict) +@contract(user=User, has_instructor_access=bool, block=XBlock, view=basestring, frag=Fragment, context="dict|None") def add_staff_markup(user, has_instructor_access, block, view, frag, context): # pylint: disable=unused-argument """ Updates the supplied module with a new get_html function that wraps