Skip to content

Commit 12923f9

Browse files
feat(numericalInput): change in utils file to pass pylint checks
1 parent 85537c8 commit 12923f9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • cms/djangoapps/contentstore/api/views

cms/djangoapps/contentstore/api/views/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from calc.preview import latex_preview
1919
import pyparsing
2020

21+
2122
@view_auth_classes()
2223
class BaseCourseView(DeveloperErrorViewMixin, GenericAPIView):
2324
"""
@@ -138,9 +139,11 @@ def _wrapper_view(self, request, course_id, *args, **kwargs):
138139
return view(self, request, course_key, *args, **kwargs)
139140
return _wrapper_view
140141

141-
class NumericalInputValidationView(GenericAPIView):
142142

143+
class NumericalInputValidationView(GenericAPIView):
144+
"""Class in charge of NumericalInputValidations"""
143145
def post(self, request):
146+
"""function to validate a math expression (formula) and return of the numeric input is valid or not"""
144147
result = {'preview': '',
145148
'is_valid': True,
146149
'error': ''}

0 commit comments

Comments
 (0)