-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[InferPython] Adding dicts to py_subscript model
Summary: Dict key access will now work for some cases when keys are constant strings. If given key is not a constant string, we return a fresh val (as was done before for any dict key access). Example: ``` d = {"ABC": 1, "DEF": asyncio.sleep(1)} # returns corresponding awaitable val return d["DEF"] ``` Reviewed By: davidpichardie Differential Revision: D69542133 Privacy Context Container: L1208441 fbshipit-source-id: e3e3988e6399d42c82e54dd3c87d7bb2d84cb138
- Loading branch information
1 parent
38e515f
commit fa18c27
Showing
3 changed files
with
34 additions
and
8 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