mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 18:41:50 +01:00
chore: Update Python dependencies
This commit is contained in:
@@ -18,7 +18,7 @@ from selenium.webdriver.remote.webelement import WebElement
|
||||
from selenium.webdriver.support import expected_conditions as EC
|
||||
from wcmatch import glob
|
||||
|
||||
from . import utils, resources, extract # pylint: disable=W0406
|
||||
from . import utils, resources, extract
|
||||
from .utils import abspath, apply_defaults, ensure, is_frozen, pause, pluralize, safe_get, parse_datetime
|
||||
from .selenium_mixin import SeleniumMixin
|
||||
from ._version import __version__
|
||||
|
||||
@@ -215,7 +215,7 @@ def load_dict_from_module(module:ModuleType, filename:str, content_label:str = "
|
||||
if file_ext not in (".json", ".yaml", ".yml"):
|
||||
raise ValueError(f'Unsupported file type. The file name "{filename}" must end with *.json, *.yaml, or *.yml')
|
||||
|
||||
content = get_resource_as_string(module, filename)
|
||||
content = get_resource_as_string(module, filename) # pylint: disable=deprecated-method
|
||||
return json.loads(content) if filename.endswith(".json") else YAML().load(content) # type: ignore[no-any-return] # mypy
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user