Skip to content

Commit a16b0b9

Browse files
committed
[mypyc] feat: use exact_dict_rprimitive for non-native class dict rtype
1 parent c34d65d commit a16b0b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypyc/irbuild/classdef.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
from mypyc.ir.rtypes import (
5151
RType,
5252
bool_rprimitive,
53-
dict_rprimitive,
53+
exact_dict_rprimitive,
5454
is_none_rprimitive,
5555
is_object_rprimitive,
5656
is_optional_type,
@@ -611,7 +611,7 @@ def setup_non_ext_dict(
611611
py_hasattr_op, [metaclass, builder.load_str("__prepare__")], cdef.line
612612
)
613613

614-
non_ext_dict = Register(dict_rprimitive)
614+
non_ext_dict = Register(exact_dict_rprimitive)
615615

616616
true_block, false_block, exit_block = BasicBlock(), BasicBlock(), BasicBlock()
617617
builder.add_bool_branch(has_prepare, true_block, false_block)

0 commit comments

Comments
 (0)