From e9a53c7a0d8e2dc6121f95f95b4f311b398f737c Mon Sep 17 00:00:00 2001 From: plumiron Date: Wed, 28 Feb 2018 10:55:22 +0800 Subject: [PATCH] fix annotation --- requests_html.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requests_html.py b/requests_html.py index d5890a2..75e8df0 100644 --- a/requests_html.py +++ b/requests_html.py @@ -35,7 +35,7 @@ class BaseParser: self._html = html @property - def raw_html(self): + def raw_html(self) -> bytes: """Bytes representation of the HTML content (`learn more `_).""" if self._html: return self._html @@ -43,7 +43,7 @@ class BaseParser: return etree.tostring(self.element, encoding='unicode').strip().encode(self.encoding) @property - def html(self) -> bytes: + def html(self) -> str: """Unicode representation of the HTML content (`learn more `_).""" if self._html: return self._html.decode(self.encoding)