-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
**$...
for keyword arguments.
This pretty much just works out of the box, albeit it's ordering-dependent. For instance, to match any call to `foo.Bar` which does _not_ include `dry_run=True`, you can use: ```python AllOf( ExprPattern("foo.Bar(*$..., **$...)"), Unless(ExprPattern("$_(*$..., **$..., dry_run=True, **$...)")) ) ``` Or similar. A future change to refex (which I do want to make eventually...) could eventually mean keyword parameter and dict ordering is ignored by default, so that we can remove one of the `**$...`. PiperOrigin-RevId: 568317030
- Loading branch information
1 parent
5bbce5e
commit 311a231
Showing
10 changed files
with
402 additions
and
164 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
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
Oops, something went wrong.