From 81fea255092c85ff24be14392509a2bd1af19c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20D=C3=BCster?= Date: Thu, 26 Oct 2023 09:17:43 +0200 Subject: [PATCH] [docs] Remove unnecessary use of Union --- fdroidserver/checkupdates.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index a67a4463..1c07acc9 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -32,7 +32,7 @@ import logging import copy import urllib.parse from pathlib import Path -from typing import Optional, Union +from typing import Optional from . import _ from . import common @@ -41,7 +41,7 @@ from . import net from .exception import VCSException, NoSubmodulesException, FDroidException, MetaDataException -def check_http(app: metadata.App) -> tuple[Union[str, None], Union[int, None]]: +def check_http(app: metadata.App) -> tuple[Optional[str], Optional[int]]: """Check for a new version by looking at a document retrieved via HTTP. The app's UpdateCheckData field is used to provide the information