Skip to content

Commit 4b81bb5

Browse files
committed
per CR: match __init__
1 parent 97c62c2 commit 4b81bb5

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

src/hyperlink/_url.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,8 +1158,19 @@ def replace(
11581158
slash.
11591159
userinfo (Text): The username or colon-separated username:password
11601160
pair.
1161-
uses_netloc (bool): Indicates whether rooted paths should include a
1162-
scheme-separator by default.
1161+
uses_netloc (bool): Indicates whether ``://`` (the "netloc
1162+
separator") will appear to separate the scheme from the *path*
1163+
in cases where no host is present. Setting this to ``True`` is
1164+
a non-spec-compliant affordance for the common practice of
1165+
having URIs that are *not* URLs (cannot have a 'host' part) but
1166+
nevertheless use the common ``://`` idiom that most people
1167+
associate with URLs; e.g. ``message:`` URIs like
1168+
``message://message-id`` being equivalent to
1169+
``message:message-id``. This may be inferred based on the
1170+
scheme depending on whether :func:`register_scheme` has been
1171+
used to register the scheme and should not be passed directly
1172+
unless you know the scheme works like this and you know it has
1173+
not been registered.
11631174
11641175
Returns:
11651176
URL: A copy of the current :class:`URL`, with new values for

0 commit comments

Comments
 (0)