From 9fae5463308abde5f83f56217348b3538c9fb6fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gil=20de=20G=C3=B3mez=20P=C3=A9rez?= Date: Thu, 16 Jul 2026 10:48:27 +0300 Subject: [PATCH] Feat: Better typing in inverter.py --- examples/inverter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/inverter.py b/examples/inverter.py index a84002f..e5a29e1 100644 --- a/examples/inverter.py +++ b/examples/inverter.py @@ -6,7 +6,7 @@ class Context(TypedDict): result: str n_chars: int -def add_to_result(context, c): +def add_to_result(context: Context, c: str) -> None: context["result"] += c context["n_chars"] += 1