Skip to content

Conversation

@jstasiak
Copy link
Contributor

@jstasiak jstasiak commented Aug 5, 2016

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] #436 (comment)

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] python#436 (comment)
@matthiaskramm matthiaskramm merged commit 9715995 into python:master Aug 5, 2016
@jstasiak jstasiak deleted the lxml branch August 8, 2016 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants