[pgp] Fix ruff errors

This commit is contained in:
Philipp Hörist
2025-02-09 09:32:25 +01:00
parent 7e241d7a7d
commit f25f920036
4 changed files with 4 additions and 4 deletions

View File

@@ -15,8 +15,8 @@
from __future__ import annotations
from typing import Any
from typing import Callable
from collections.abc import Callable
from dataclasses import dataclass
from dataclasses import field

View File

@@ -39,7 +39,7 @@ def find_gpg():
gpg_cmd = binary + " -h >nul 2>&1"
else:
gpg_cmd = binary + " -h >/dev/null 2>&1"
if subprocess.call(gpg_cmd, shell=True):
if subprocess.call(gpg_cmd, shell=True): # noqa: S602
return False
return True