Bump yarl to 1.14.0 (#127924)

This commit is contained in:
J. Nick Koston 2024-10-08 14:01:37 +02:00 committed by GitHub
parent 92f08be416
commit c9311ea3c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 11 additions and 3 deletions

View file

@ -23,12 +23,16 @@ TO_REDACT = {
def redact_url(data: str) -> str:
"""Redact credentials from string url."""
url = url_in = yarl.URL(data)
# https://github.com/pylint-dev/pylint/issues/3484
# pylint: disable-next=using-constant-test
if url_in.user:
url = url.with_user("****")
# pylint: disable-next=using-constant-test
if url_in.password:
url = url.with_password("****")
if url_in.path != "/":
url = url.with_path("****")
# pylint: disable-next=using-constant-test
if url_in.query_string:
url = url.with_query("****=****")
return str(url)

View file

@ -46,6 +46,8 @@ def async_process_play_media_url(
elif media_content_id[0] != "/":
return media_content_id
# https://github.com/pylint-dev/pylint/issues/3484
# pylint: disable-next=using-constant-test
if parsed.query:
logging.getLogger(__name__).debug(
"Not signing path for content with query param"

View file

@ -133,6 +133,8 @@ def process_plex_payload(
elif content_id.startswith(PLEX_URI_SCHEME):
# Handle standard media_browser payloads
plex_url = URL(content_id)
# https://github.com/pylint-dev/pylint/issues/3484
# pylint: disable-next=using-constant-test
if plex_url.name:
if len(plex_url.parts) == 2:
if plex_url.name == "search":

View file

@ -65,7 +65,7 @@ uv==0.4.17
voluptuous-openapi==0.0.5
voluptuous-serialize==2.6.0
voluptuous==0.15.2
yarl==1.13.1
yarl==1.14.0
zeroconf==0.135.0
# Constrain pycryptodome to avoid vulnerability

View file

@ -74,7 +74,7 @@ dependencies = [
"voluptuous==0.15.2",
"voluptuous-serialize==2.6.0",
"voluptuous-openapi==0.0.5",
"yarl==1.13.1",
"yarl==1.14.0",
]
[project.urls]

View file

@ -44,4 +44,4 @@ uv==0.4.17
voluptuous==0.15.2
voluptuous-serialize==2.6.0
voluptuous-openapi==0.0.5
yarl==1.13.1
yarl==1.14.0