Skip to content

Conversation

@wchargin
Copy link
Contributor

@wchargin wchargin commented Feb 29, 2020

Summary:
These initializers have always been documented as requiring keyword
arguments, so this is not a breaking change. We can now use Python 3’s
keyword-only argument syntax to actually enforce this.

The trailing comma removal is necessary to work around a parser bug in
cPython 3.5: https://bugs.python.org/issue9232

Test Plan:
All tests pass, and no Google-internal Python 2 binaries depend on this
target.

wchargin-branch: base-plugin-kwargs

Summary:
These initializers have always been documented as requiring keyword
arguments, so this is not a breaking change. We can now use Python 3’s
keyword-only argument syntax to actually enforce this.

Test Plan:
All tests pass, and no Google-internal Python 2 binaries depend on this
target.

wchargin-branch: base-plugin-kwargs
@wchargin
Copy link
Contributor Author

wchargin commented Mar 6, 2020

Merging master into this branch; I expect that this will cause a fast CI
failure caught by #3320, which I’ll then fix.

wchargin added 2 commits March 6, 2020 14:13
wchargin-branch: base-plugin-kwargs
wchargin-source: cbb58bfcf9bd73e9528cc6f104172f722b202b9b
wchargin-branch: base-plugin-kwargs
wchargin-source: a8fb0eeaa13b1abb7cec71350e6d8a4cc8d70bcc
@wchargin wchargin merged commit 27423d2 into master Mar 6, 2020
@wchargin wchargin deleted the wchargin-base-plugin-kwargs branch March 6, 2020 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants