Skip to content

Conversation

matthiaskramm
Copy link
Contributor

There is no "builtins" in Python 2.

@gvanrossum
Copy link
Member

Strangely enough that doesn't appear to work with mypy! Mind if I change it as follows?

# workaround for mypy#2010
if sys.version_info < (3,):
    import __builtin__ as builtins
else:
    import builtins
_str = builtins.str

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