Skip to content

Commit ef89168

Browse files
committed
silence mypy in a different way
1 parent 781c664 commit ef89168

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ deps =
1919
mypy==0.941
2020
types-requests
2121

22-
commands = mypy --ignore-missing-imports web_poet tests
22+
commands = mypy \
23+
--ignore-missing-imports \
24+
--no-warn-no-return \
25+
web_poet tests
2326

2427
[docs]
2528
changedir = docs

web_poet/page_inputs.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,4 +189,3 @@ def _auto_detect_fun(self, body: bytes) -> Optional[str]:
189189
except UnicodeError:
190190
continue
191191
return resolve_encoding(enc)
192-
return None

0 commit comments

Comments
 (0)