@@ -59,13 +59,13 @@ def _get_template_name_description(template_name):
5959
6060
6161def _normalize_context (context ):
62- # type: (Dict[str, Any]) -> Dict[str, Union[str, int, float, bool, type( None) , list[Union[str, int, float, bool, type( None) ]], dict[str, Union[str, int, float, bool, type( None) ]]]]
62+ # type: (Dict[str, Any]) -> Dict[str, Union[str, int, float, bool, None, list[Union[str, int, float, bool, None]], dict[str, Union[str, int, float, bool, None]]]]
6363 """
6464 Filter out non-primitive types from `context`.
6565 """
6666 new_context = (
6767 {}
68- ) # type: Dict[str, Union[str, int, float, bool, type( None) , list[Union[str, int, float, bool, type( None) ]], dict[str, Union[str, int, float, bool, type( None) ]]]]
68+ ) # type: Dict[str, Union[str, int, float, bool, None, list[Union[str, int, float, bool, None]], dict[str, Union[str, int, float, bool, None]]]]
6969 for key , value in context .items ():
7070 if isinstance (value , (str , int , float , bool , type (None ))):
7171 new_context [key ] = value
0 commit comments