chore: Update Python dependencies

This commit is contained in:
sebthom
2024-03-02 23:15:21 +01:00
parent d473577d18
commit 703c4fee23
5 changed files with 106 additions and 110 deletions

View File

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

View File

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