8000 NamedTuple._replace() · Issue #2143 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

NamedTuple._replace() #2143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
smessmer opened this issue Sep 15, 2016 · 2 comments
Closed

NamedTuple._replace() #2143

smessmer opened this issue Sep 15, 2016 · 2 comments

Comments

@smessmer
Copy link

NamedTuple has some public functions starting with an underscore, see https://docs.python.org/2/library/collections.html

When I try to use them, mypy complains with

error: "MyType" has no attribute "_replace"
@gvanrossum
Copy link
Member

This should be fixed in the repo already, in #1810. You should be able to install straight from the repo, like this:

pip3 install -U git+git://github.com/python/mypy.git

@smessmer
Copy link
Author

Thanks, sorry didn't see that.

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

No branches or pull requests

2 participants
0