URL().child() fails with a TypeError
Julian opened this issue · 2 comments
Julian commented
python -c 'from hyperlink import URL; URL.from_text(u"http://example.com").child()'
produces
Traceback (most recent call last):
File "<module>", line 1, in <module>
File "/Users/Julian/.local/share/virtualenvs/dev/site-packages/hyperlink/_url.py", line 1099, in child
else None] + new_segs
TypeError: unsupported operand type(s) for +: 'tuple' and 'list'
probably would be nice for that to just return the original URL. If it's intentionally an error though, one that says that the argument is required would be nice.