mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-04-11 09:02:03 -07:00
chore: Change method signature due to parent class's change
This commit is contained in:
parent
d471ce607b
commit
13d9c26a16
1 changed files with 6 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import xml.etree.ElementTree as ET # nosec
|
import xml.etree.ElementTree as ET # nosec
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union, cast
|
from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple, Union, cast
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from language_tags import tags
|
from language_tags import tags
|
||||||
|
|
@ -198,7 +198,11 @@ class MaxMindDownloader(GitHubDownloader):
|
||||||
MaxMind database downloader from a GitHub repository.
|
MaxMind database downloader from a GitHub repository.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def check_asset(self, asset: Dict) -> Optional[str]:
|
def check_asset(
|
||||||
|
self,
|
||||||
|
asset: Dict,
|
||||||
|
predicate: Optional[Callable[[Dict], Any]] = None
|
||||||
|
) -> Optional[str]:
|
||||||
# Check for the first -City.mmdb file
|
# Check for the first -City.mmdb file
|
||||||
if asset['name'].endswith('-City.mmdb'):
|
if asset['name'].endswith('-City.mmdb'):
|
||||||
return asset['browser_download_url']
|
return asset['browser_download_url']
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue