add explicit None return for _find_encoding (mypy)
This commit is contained in:
parent
ff9c82bf67
commit
0a1077c5cd
1 changed files with 1 additions and 0 deletions
|
@ -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={},
|
||||
|
|
Loading…
Reference in a new issue