add explicit None return for _find_encoding (mypy)

This commit is contained in:
jesopo 2019-09-09 14:25:01 +01:00
parent ff9c82bf67
commit 0a1077c5cd

View file

@ -79,6 +79,7 @@ def _find_encoding(soup: bs4.BeautifulSoup) -> typing.Optional[str]:
bs4.Doctype)] or None
if doctype and doctype[0] == "html":
return "utf8"
return None
def request(url: str, method: str="GET", get_params: dict={},
post_data: typing.Any=None, headers: dict={},