Feat: Better typing in inverter.py
This commit is contained in:
1 parent
79833959bc
commit
9fae546330
1 file changed
+1
-1
@@ -6,7 +6,7 @@ class Context(TypedDict):
|
|||||||
result: str
|
result: str
|
||||||
n_chars: int
|
n_chars: int
|
||||||
|
|
||||||
def add_to_result(context, c):
|
def add_to_result(context: Context, c: str) -> None:
|
||||||
context["result"] += c
|
context["result"] += c
|
||||||
context["n_chars"] += 1
|
context["n_chars"] += 1
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user