Skip to content
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

Allow docstring in NamedTuple subclasses #3043

Closed
Stiivi opened this issue Mar 22, 2017 · 3 comments
Closed

Allow docstring in NamedTuple subclasses #3043

Stiivi opened this issue Mar 22, 2017 · 3 comments

Comments

@Stiivi
Copy link

Stiivi commented Mar 22, 2017

MyPy will complain Invalid statement in NamedTuple definition when a doc string is added in the NamedTuple subclass:

from typing import NamedTuple

class Thing(NamedTuple):
    """This is a thing"""
    value: int

Sibling issue: python/typing#404

@gvanrossum
Copy link
Member

gvanrossum commented Mar 22, 2017 via email

@ilevkivskyi
Copy link
Member

This will be fixed by #3081

@elliott-beach
Copy link
Contributor

This was fixed and should be closed.

@ethanhs ethanhs closed this as completed Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants