mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 22:40:12 +01:00
Merge branch 'fixup_more_docstrings' into 'master'
[docs] Remove unnecessary use of Union See merge request fdroid/fdroidserver!1401
This commit is contained in:
commit
bb5fc0a380
@ -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