@rwcarlsen use `isinstance(t, Sequence)` here.  You shouldn't override the `type` builtin function and list is too specific.