mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 21:40:13 +03:00
JSONRenderer guarantees that the render will return bytes. Adjusting type accordingly.
This commit is contained in:
parent
748f2fc533
commit
e2f4bb8bfa
|
@ -11,7 +11,7 @@ cdef class BaseRenderer(object):
|
|||
"""
|
||||
|
||||
@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)
|
||||
cdef class JSONRenderer(BaseRenderer):
|
||||
|
|
Loading…
Reference in New Issue
Block a user