From bc2d23fc55e7d8e11179da01ee02333c0605037b Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Mon, 2 May 2022 13:07:39 +0100 Subject: [PATCH] Fix typing annotations --- bw_add_sshkeys.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bw_add_sshkeys.py b/bw_add_sshkeys.py index 8f6eac0..91b99ca 100755 --- a/bw_add_sshkeys.py +++ b/bw_add_sshkeys.py @@ -8,7 +8,7 @@ import json import logging import os import subprocess -from typing import Any, Callable, Dict, List +from typing import Any, Callable, Dict, List, Optional from pkg_resources import parse_version @@ -192,7 +192,7 @@ def add_ssh_keys(session: str, items: List[Dict[str, Any]], keyname: str, pwkeyn logging.warning('Could not add key to the SSH agent') -def ssh_add(session: str, item_id: str, key_id: str, key_pw: str) -> None: +def ssh_add(session: str, item_id: str, key_id: str, key_pw: Optional[str]) -> None: """ Function to get the key contents from the Bitwarden vault """