-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure **kwargs initialized by positionalOnlyCall is mutable
The fix in cf94101 made an empty **kwargs immutable when initialized via positionalOnlyCall. Unfortunately, that was an incompatible change (although unlikely to affect anything in practice given how positionalOnlyCall is currently used): the Starlark language spec does not specify whether **kwargs is mutable, but **kwargs is mutable in Python 3 and was always mutable previously in the Starlark interpreter. See bazelbuild/starlark#295 - perhaps it ought to be immutable in Starlark, but that requires a language spec change and an incompatible flag. PiperOrigin-RevId: 712920880 Change-Id: I151bb29e9646b82def8944143198f3dffb398583
- Loading branch information
1 parent
92c8e71
commit eca313a
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters