Because rfc3986 strictly adheres to RFC 3986, it requires an authority component to be preceded by //.
If you attempt to parse a URI like a GitHub SSH URL (git@github.com:user/repo) without the leading slashes, the parser will treat the entire string as a path because it does not see the // required to trigger authority parsing.
To ensure the authority (e.g., git@github.com) is correctly identified, the URI must include the // prefix.
import rfc3986
# Strict parsing treats this as a path because '//' is missing
print(rfc3986.uri_reference('git@github.com:sigmavirus24/rfc3986'))
# URIReference(scheme=None, authority=None, path='git@github.com:sigmavirus24/rfc3986', ...)
# Adding '//' allows the authority to be parsed correctly
print(rfc3986.uri_reference('//git@github.com:sigmavirus24/rfc3986'))
# URIReference(scheme=None, authority='git@github.com:sigmavirus24', path='/rfc3986', ...)