Skip to content

Commit 2d141a8

Browse files
committed
Fix line length in URL parameter comments
Split long comments to comply with ruff E501 line length checks.
1 parent 36e1bd9 commit 2d141a8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

httpx/_urls.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def __init__(self, url: URL | str = "", **kwargs: typing.Any) -> None:
111111
# than `kwargs["query"] = ""`, so that generated URLs do not
112112
# include an empty trailing "?".
113113
#
114-
# Merge new params with existing query parameters instead of replacing them.
114+
# Merge new params with existing query parameters instead of
115+
# replacing them.
115116
params = kwargs.pop("params")
116117
# Get existing query parameters from the URL
117118
if isinstance(url, str):
@@ -123,7 +124,8 @@ def __init__(self, url: URL | str = "", **kwargs: typing.Any) -> None:
123124
existing_params = QueryParams()
124125

125126
if isinstance(params, QueryParams):
126-
# If params is a QueryParams object, use it directly (for copy_* methods)
127+
# If params is a QueryParams object, use it directly
128+
# (for copy_* methods)
127129
kwargs["query"] = None if not params else str(params)
128130
elif params:
129131
# Merge existing parameters with new params (dict, list, etc.)

0 commit comments

Comments
 (0)