You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
to_iri() changes a literal plus in a query key into a space #213
I'm doing some research for Tessl Code Review and we ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:
Reproduction
On 978f2e6, this runs against the unchanged source on Python 3.14.2:
The IRI round trip should preserve the query key a+b, as the URI round trip does. Currently a consumer decoding the IRI looks up a different parameter name; the value survives unchanged.
PR #158 protects literal plus signs in query values. The key decode map in _url.py still permits that unquoting, so the same round-trip invariant is missing for keys.
I ran the small example above, including the URI control. I have not prepared a fix or run the full suite.
Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.
We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.
Activity