Skip to content

Commit c3b49f2

Browse files
Add a comment explaining the reason _QueryType in builder.py is modified from typeshed.
1 parent c7ab1db commit c3b49f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rfc3986/builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
from . import uri
2121
from . import uri_reference
2222

23-
# Copied from urllib.parse in typeshed.
23+
# Modified from urllib.parse in typeshed.
2424
_QueryType = t.Union[
2525
t.Mapping[t.Any, t.Any],
2626
t.Mapping[t.Any, t.Sequence[t.Any]],
27+
# Substituting List for Sequence since one of the add/extend methods
28+
# below has a runtime isinstance check for list.
2729
t.List[t.Tuple[t.Any, t.Any]],
2830
t.List[t.Tuple[t.Any, t.Sequence[t.Any]]],
2931
]

0 commit comments

Comments
 (0)