File tree Expand file tree Collapse file tree 5 files changed +12
-1
lines changed
Expand file tree Collapse file tree 5 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,8 @@ cdef dict _INTERNED_STRINGS = {
5555 " required" : sys.intern(" required" ),
5656 " steps" : sys.intern(" steps" ),
5757 " validators" : sys.intern(" validators" ),
58+ " HEAD" : sys.intern(" HEAD" ),
59+ " OPTIONS" : sys.intern(" OPTIONS" ),
5860}
5961
6062T = TypeVar(" T" )
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ class StringConstants {
9999 constants[" required" ] = " required" ;
100100 constants[" steps" ] = " steps" ;
101101 constants[" validators" ] = " validators" ;
102+ constants[" HEAD" ] = " HEAD" ;
103+ constants[" OPTIONS" ] = " OPTIONS" ;
102104 }
103105
104106public:
Original file line number Diff line number Diff line change 3838 "required" : sys .intern ("required" ),
3939 "steps" : sys .intern ("steps" ),
4040 "validators" : sys .intern ("validators" ),
41+ "HEAD" : sys .intern ("HEAD" ),
42+ "OPTIONS" : sys .intern ("OPTIONS" ),
4143}
4244
4345
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ from libcpp.vector cimport vector
1414from libcpp.string cimport string
1515from libcpp.algorithm cimport find
1616
17- DEF LARGE_DATASET_THRESHOLD = 100
17+ cdef int LARGE_DATASET_THRESHOLD = 10
1818
1919
2020cdef class DataMixin:
Original file line number Diff line number Diff line change @@ -285,6 +285,11 @@ def apply_nested_input_filter(
285285 raise ValidationError (
286286 f"Nested validation failed for field '{ field_name } ': { e !s} "
287287 ) from e
288+ except Exception as e :
289+ raise ValidationError (
290+ f"Unexpected error during nested validation for field "
291+ f"'{ field_name } ': { e !s} "
292+ ) from e
288293
289294 @staticmethod
290295 def get_field_value (
You can’t perform that action at this time.
0 commit comments