Skip to content

Commit b13528a

Browse files
committed
Merge branch 'exact-dict-set-item' of https://github.com/BobTheBuidler/mypy into exact-dict-set-item
2 parents a3d6eb8 + 240277c commit b13528a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

mypyc/irbuild/classdef.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ def allocate_class(builder: IRBuilder, cdef: ClassDef) -> Value:
488488

489489
# Add it to the dict
490490
builder.call_c(
491-
exact_dict_set_item_op, [builder.load_globals_dict(), builder.load_str(cdef.name), tp], cdef.line
491+
exact_dict_set_item_op,
492+
[builder.load_globals_dict(), builder.load_str(cdef.name), tp],
493+
cdef.line,
492494
)
493495

494496
return tp

mypyc/irbuild/function.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@
7676
)
7777
from mypyc.irbuild.generator import gen_generator_func, gen_generator_func_body
7878
from mypyc.irbuild.targets import AssignmentTarget
79-
from mypyc.primitives.dict_ops import dict_get_method_with_none, dict_new_op, exact_dict_set_item_op
79+
from mypyc.primitives.dict_ops import (
80+
dict_get_method_with_none,
81+
dict_new_op,
82+
exact_dict_set_item_op,
83+
)
8084
from mypyc.primitives.generic_ops import py_setattr_op
8185
from mypyc.primitives.misc_ops import register_function
8286
from mypyc.primitives.registry import builtin_names

0 commit comments

Comments
 (0)