Skip to content

Commit 39659c7

Browse files
committed
Make mypy succeed with imports on master.py
We get little benefit from our mypy QA checks at the moment, because we skip imports. This patch is what's needed to make mypy succeed with imports on a single file: master.py It also updates mypy to the current version, and enables a QA check. Mypy bugs I encountered: dict.update with kwargs not supported: python/mypy#1031 property setters and getters must be adjacent: python/mypy#1465
1 parent c088249 commit 39659c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mitmproxy/utils/typecheck.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import typing
22

33

4-
def check_type(name: str, value: typing.Any, typeinfo: type) -> None:
4+
def check_type(name: str, value: typing.Any, typeinfo: typing.Any) -> None:
55
"""
66
This function checks if the provided value is an instance of typeinfo
77
and raises a TypeError otherwise.

0 commit comments

Comments
 (0)