JSONRenderer guarantees that the render will return bytes. Adjusting type accordingly.

This commit is contained in:
Omer Katz 2015-02-03 17:50:08 +02:00
parent 748f2fc533
commit e2f4bb8bfa

View File

@ -11,7 +11,7 @@ cdef class BaseRenderer(object):
""" """
@cython.locals(indent=int, separators=tuple) @cython.locals(indent=int, separators=tuple)
cpdef object render(self, dict data, accepted_media_type=?, renderer_context=?) cpdef bytes render(self, dict data, accepted_media_type=?, renderer_context=?)
@cython.locals(compact=bool, ensure_ascii=bool, charset=unicode) @cython.locals(compact=bool, ensure_ascii=bool, charset=unicode)
cdef class JSONRenderer(BaseRenderer): cdef class JSONRenderer(BaseRenderer):