
from __future__ import unicode_literals

from .compat import is_string


def dump(template_name, context):
    if not is_string(template_name):
        raise TypeError('Template name is required to be of type str')


from __future__ import unicode_literals

from .compat import is_string


def dump(template_name, context):
    if not is_string(template_name):
        raise TypeError('Template name is required to be of type str')

    if not isinstance(context, dict):
        raise TypeError('Context is required to be of type dict')

Raise a TypeError if context is not a dict
Raise a TypeError if context is not a dict

  
  from __future__ import unicode_literals
  
  from .compat import is_string
  
  
  def dump(template_name, context):
      if not is_string(template_name):
          raise TypeError('Template name is required to be of type str')
  
+     if not isinstance(context, dict):
+         raise TypeError('Context is required to be of type dict')
+ 
Raise a TypeError if context is not a dict
## Code Before:

from __future__ import unicode_literals

from .compat import is_string


def dump(template_name, context):
    if not is_string(template_name):
        raise TypeError('Template name is required to be of type str')

## Instruction:
Raise a TypeError if context is not a dict
## Code After:

from __future__ import unicode_literals

from .compat import is_string


def dump(template_name, context):
    if not is_string(template_name):
        raise TypeError('Template name is required to be of type str')

    if not isinstance(context, dict):
        raise TypeError('Context is required to be of type dict')
