Skip to content

Make type accept kwargs.#4918

Merged
srittau merged 1 commit intopython:masterfrom
esoma:master
Jan 9, 2021
Merged

Make type accept kwargs.#4918
srittau merged 1 commit intopython:masterfrom
esoma:master

Conversation

@esoma
Copy link
Copy Markdown
Contributor

@esoma esoma commented Jan 9, 2021

Copy link
Copy Markdown
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

While I am not a big fan of allowing arbitrary arguments to type(), it is the best we can do at the moment. In the future, we can possible use something similar to ParamSpec to require kwds to be equal to the arguments to __init_subclass__().

@srittau srittau merged commit 2f876a3 into python:master Jan 9, 2021
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.

2 participants