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:
parent
f4b10cf839
commit
81fea25509
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user