Skip to content

URL().child() fails with a TypeError #42

@Julian

Description

@Julian
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions