1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

[docs] Remove unnecessary use of Union

This commit is contained in:
Gregor Düster 2023-10-26 09:17:43 +02:00
parent f4b10cf839
commit 81fea25509
No known key found for this signature in database
GPG Key ID: 1B4181FC97673B9D

View File

@ -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