Skip to content

bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but doesn't have a type annotation.#6192

Merged
ericvsmith merged 3 commits into
python:masterfrom
ericvsmith:bpo-32505-field-with-no-type-annotation
Mar 22, 2018
Merged

bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but doesn't have a type annotation.#6192
ericvsmith merged 3 commits into
python:masterfrom
ericvsmith:bpo-32505-field-with-no-type-annotation

Conversation

@ericvsmith

@ericvsmith ericvsmith commented Mar 22, 2018

Copy link
Copy Markdown
Member

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

@ericvsmith ericvsmith merged commit 56970b8 into python:master Mar 22, 2018
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @ericvsmith for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-6193 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 22, 2018
…pe Field, but doesn't have a type annotation. (pythonGH-6192)

If a dataclass has a member variable that's of type Field, but it doesn't have a type annotation, raise TypeError.
(cherry picked from commit 56970b8)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
@ericvsmith ericvsmith deleted the bpo-32505-field-with-no-type-annotation branch March 22, 2018 20:30
miss-islington added a commit that referenced this pull request Mar 22, 2018
…pe Field, but doesn't have a type annotation. (GH-6192)

If a dataclass has a member variable that's of type Field, but it doesn't have a type annotation, raise TypeError.
(cherry picked from commit 56970b8)

Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
jo2y pushed a commit to jo2y/cpython that referenced this pull request Mar 23, 2018
…pe Field, but doesn't have a type annotation. (pythonGH-6192)

If a dataclass has a member variable that's of type Field, but it doesn't have a type annotation, raise TypeError.
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.

5 participants