From fb0f2e4a084c053c297333d9c3976323e0c3b5b5 Mon Sep 17 00:00:00 2001 From: Yotam Nachum Date: Sat, 14 Jan 2023 23:04:13 +0200 Subject: [PATCH] Make mypy strict --- frida/core.py | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frida/core.py b/frida/core.py index 779308cb..b6dc5c86 100644 --- a/frida/core.py +++ b/frida/core.py @@ -401,7 +401,7 @@ def on_cancelled() -> None: return result.value - def _on_rpc_message(self, request_id: int, operation: str, params, data) -> None: + def _on_rpc_message(self, request_id: int, operation: str, params: List[Any], data: Optional[bytes]) -> None: if operation in ("ok", "error"): callback = self._pending.pop(request_id, None) if callback is None: diff --git a/pyproject.toml b/pyproject.toml index 85966e1b..9d6978b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,3 +8,6 @@ line-length = 120 [tool.isort] profile = "black" line_length = 120 + +[tool.mypy] +strict = true