Commit 238bf26d authored by sim's avatar sim

Fix response type classes hierarchy

parent 2754c5ea
......@@ -38,16 +38,16 @@ class StreamableMixin(object):
return super()._get_body()
class TextResponse(StreamableMixin, BaseText):
class TextResponse(StreamableMixin, BaseText, ABC):
pass
class HtmlResponse(StreamableMixin, BaseHtml, ABC): pass
HtmlResponse.register(TextResponse)
class HtmlResponse(StreamableMixin, BaseHtml): pass
TextResponse.register(HtmlResponse)
class XmlResponse(StreamableMixin, BaseXml, ABC): pass
XmlResponse.register(TextResponse)
class XmlResponse(StreamableMixin, BaseXml): pass
TextResponse.register(XmlResponse)
class ParseableResponse(TextResponse):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment