From aa934d5ff570d79a3ec8f5de82bc06ccae1d6416 Mon Sep 17 00:00:00 2001 From: Levente Polyak Date: Tue, 12 Oct 2021 19:35:18 +0200 Subject: [PATCH] chore(keyringctl): declare missing type hinting for cwd --- keyringctl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keyringctl b/keyringctl index 89174d8..bc33d39 100755 --- a/keyringctl +++ b/keyringctl @@ -32,6 +32,7 @@ from typing import Dict from typing import List from typing import Optional from typing import Iterable +from typing import Iterator from typing import Tuple from typing import Union @@ -39,7 +40,7 @@ from contextlib import contextmanager @contextmanager -def cwd(new_dir: Path): +def cwd(new_dir: Path) -> Iterator[None]: """Change to a new current working directory in a context and go back to the previous dir after the context is done Parameters