URL(scheme="ht,tp") succeeds. URL.from_text("ht,tp://example.com") does too.
The scheme check says only letters, digits, +, -, and . are allowed. The pattern is [a-zA-Z0-9+-.]. +-. is the range from + to ., and a comma sits in that range.
git+https, a-b, and a.b are still valid.
URL(scheme="ht,tp")succeeds.URL.from_text("ht,tp://example.com")does too.The scheme check says only letters, digits,
+,-, and.are allowed. The pattern is[a-zA-Z0-9+-.].+-.is the range from+to., and a comma sits in that range.git+https,a-b, anda.bare still valid.