> `unicode` is not a type on Python 3. I think this should be changed to `(str, pycompat.unicode)`. Alternatively, it could be `type(u'')`. I have no preference though.