Skip to content

bpo-38209: Simplify dataclasses.InitVar by using __class_getitem__().#16255

Merged
serhiy-storchaka merged 1 commit into
python:masterfrom
serhiy-storchaka:refactor-dataclasses-initvar
Sep 22, 2019
Merged

bpo-38209: Simplify dataclasses.InitVar by using __class_getitem__().#16255
serhiy-storchaka merged 1 commit into
python:masterfrom
serhiy-storchaka:refactor-dataclasses-initvar

Conversation

@serhiy-storchaka
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka commented Sep 18, 2019

Copy link
Copy Markdown
Member

@ericvsmith ericvsmith left a comment

Choose a reason for hiding this comment

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

I'm okay with these changes, but I'd like @ilevkivskyi to weigh in. If I recall correctly, this code was copied from typing.py originally.

Copy link
Copy Markdown
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

Thanks, good idea!

@serhiy-storchaka serhiy-storchaka merged commit b4d0b39 into python:master Sep 22, 2019
@serhiy-storchaka serhiy-storchaka deleted the refactor-dataclasses-initvar branch September 22, 2019 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants