Remove undesired type variable from lxml.objectify (#441)
Remove undesired type variable from lxml.objectify (#441)

typing.AnyStr usage here was a mistake that I noticed too late,
from a GitHub comment[1]:

    AnyStr is a type variable so in your version of
    objectify.fromstring() the types if text and base_url have to
    correspond -- but with unions they can each be either str or bytes,
    and that's how the rest of the API is defined.

[1] https://github.com/python/typeshed/pull/436#issuecomment-237708512
tharvik/typeshed,azag0/typeshed,li-dan/typeshed,tharvik/typeshed,euresti/typeshed