Compare commits

...

49 Commits

Author SHA1 Message Date
a7b8e78289 Update
[ghstack-poisoned]
2025-10-14 12:28:25 -03:00
d2cd097b07 Update (base update)
[ghstack-poisoned]
2025-10-14 12:28:25 -03:00
89e3581ec0 Update
[ghstack-poisoned]
2025-09-16 15:45:17 -03:00
f5cab44a43 Update (base update)
[ghstack-poisoned]
2025-09-16 15:45:17 -03:00
179de03d33 Update
[ghstack-poisoned]
2025-09-13 20:41:45 +00:00
210fbc825a Update (base update)
[ghstack-poisoned]
2025-09-13 20:29:07 +00:00
0ddc94ad6e Update
[ghstack-poisoned]
2025-09-13 20:29:07 +00:00
367a9daf63 Update (base update)
[ghstack-poisoned]
2025-09-13 20:21:54 +00:00
9e2c98e17d Update
[ghstack-poisoned]
2025-09-13 20:21:54 +00:00
eaa85f6cbc Update (base update)
[ghstack-poisoned]
2025-08-26 14:38:36 -03:00
690697d20b Update
[ghstack-poisoned]
2025-08-26 14:38:36 -03:00
7e4bc85838 Update (base update)
[ghstack-poisoned]
2025-08-22 16:52:51 -03:00
e788bc07cb Update
[ghstack-poisoned]
2025-08-22 16:52:51 -03:00
f7459621ed Update (base update)
[ghstack-poisoned]
2025-08-22 15:27:20 -03:00
bfce240867 Update
[ghstack-poisoned]
2025-08-22 15:27:20 -03:00
0ac2b8d6a3 Update (base update)
[ghstack-poisoned]
2025-08-12 12:32:15 -03:00
abe216fc60 Update
[ghstack-poisoned]
2025-08-12 12:32:15 -03:00
63b09da02d Update (base update)
[ghstack-poisoned]
2025-08-11 23:24:58 -03:00
832084a7ce Update
[ghstack-poisoned]
2025-08-11 23:24:58 -03:00
8b334fd404 Update (base update)
[ghstack-poisoned]
2025-08-08 13:17:31 -03:00
32c1072956 Update
[ghstack-poisoned]
2025-08-08 13:17:31 -03:00
8dbec2acf1 Update (base update)
[ghstack-poisoned]
2025-08-07 22:20:14 -03:00
542f14780f Update
[ghstack-poisoned]
2025-08-07 22:20:14 -03:00
5c6707e005 Update (base update)
[ghstack-poisoned]
2025-08-07 22:00:33 -03:00
e7e865ea85 Update
[ghstack-poisoned]
2025-08-07 22:00:33 -03:00
47c0635946 Update (base update)
[ghstack-poisoned]
2025-08-07 21:51:08 -03:00
63931a16f1 Update
[ghstack-poisoned]
2025-08-07 21:51:08 -03:00
a50b76d01c Update (base update)
[ghstack-poisoned]
2025-08-01 14:45:31 -03:00
db14b8c0fc Update
[ghstack-poisoned]
2025-08-01 14:45:31 -03:00
8e0c1cc68d Update (base update)
[ghstack-poisoned]
2025-07-08 15:27:59 -03:00
42e44502ed Update
[ghstack-poisoned]
2025-07-08 15:27:59 -03:00
cb988382fd Update (base update)
[ghstack-poisoned]
2025-07-07 19:59:02 -03:00
d189bd1c22 Update
[ghstack-poisoned]
2025-07-07 19:59:02 -03:00
6af7a27e42 Update (base update)
[ghstack-poisoned]
2025-07-07 19:57:17 -03:00
8ff700d99f Update
[ghstack-poisoned]
2025-07-07 19:57:17 -03:00
cf3e00f474 Update (base update)
[ghstack-poisoned]
2025-07-05 16:58:07 -03:00
d426181220 Update
[ghstack-poisoned]
2025-07-05 16:58:07 -03:00
2f9d3921f6 Update (base update)
[ghstack-poisoned]
2025-07-04 22:10:49 -03:00
62a61c1468 Update
[ghstack-poisoned]
2025-07-04 22:10:49 -03:00
bbb8ce2868 Update (base update)
[ghstack-poisoned]
2025-06-12 11:43:06 -03:00
3514d04bf6 Update
[ghstack-poisoned]
2025-06-12 11:43:06 -03:00
23ba6306a2 Update (base update)
[ghstack-poisoned]
2025-06-10 17:57:43 -03:00
58c8507b76 Update
[ghstack-poisoned]
2025-06-10 17:57:43 -03:00
d15d743104 Update (base update)
[ghstack-poisoned]
2025-06-10 12:32:08 -03:00
a9c3669f66 Update
[ghstack-poisoned]
2025-06-10 12:32:08 -03:00
5f31fff904 Update (base update)
[ghstack-poisoned]
2025-06-09 21:47:15 -03:00
66296fe2f3 Update
[ghstack-poisoned]
2025-06-09 21:47:15 -03:00
d4288a4ddd Update (base update)
[ghstack-poisoned]
2025-06-09 20:45:22 -03:00
de8c4fd7a6 Update
[ghstack-poisoned]
2025-06-09 20:45:22 -03:00
5 changed files with 16 additions and 1 deletions

View File

@ -1371,3 +1371,13 @@ class DictItemsVariable(DictViewVariable):
def python_type(self):
return dict_items
def call_method(self, tx, name, args, kwargs):
# TODO(guilhermeleobas): This should actually check if args[0]
# implements the mapping protocol.
if name == "__eq__":
assert len(args) == 1
if isinstance(args[0], DictItemsVariable):
return self.dv_dict.call_method(tx, "__eq__", [args[0].dv_dict], {})
return ConstantVariable.create(False)
return super().call_method(tx, name, args, kwargs)

View File

@ -1944,8 +1944,13 @@ class UserDefinedDictVariable(UserDefinedObjectVariable):
assert self.source is None, (
"dict_vt must be constructed by builder.py when source is present"
)
user_cls = (
collections.OrderedDict
if isinstance(value, collections.OrderedDict)
else dict
)
self._dict_vt = variables.ConstDictVariable(
{}, type(value), mutation_type=ValueMutationNew()
{}, user_cls, mutation_type=ValueMutationNew()
)
self._dict_methods = dict_methods