Skip to content

[3.7] bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but doesn't have a type annotation. (GH-6192)#6193

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-56970b8-3.7
Mar 22, 2018
Merged

[3.7] bpo-32505: dataclasses: raise TypeError if a member variable is of type Field, but doesn't have a type annotation. (GH-6192)#6193
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-56970b8-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Mar 22, 2018

Copy link
Copy Markdown
Contributor

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

https://bugs.python.org/issue32505

…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>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@ericvsmith: Backport status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 3b4c6b1 into python:3.7 Mar 22, 2018
@miss-islington

Copy link
Copy Markdown
Contributor Author

Thanks!

@miss-islington miss-islington deleted the backport-56970b8-3.7 branch March 22, 2018 20:59
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