File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 88
99import sys
1010from collections .abc import Sequence
11- from typing import Callable , Final , Optional
11+ from typing import Any , Callable , Final , Optional
1212
1313from mypy .argmap import map_actuals_to_formals
1414from mypy .nodes import ARG_POS , ARG_STAR , ARG_STAR2 , ArgKind
121121 pointer_rprimitive ,
122122 short_int_rprimitive ,
123123 str_rprimitive ,
124+ tuple_rprimitive ,
124125)
125126from mypyc .irbuild .util import concrete_arg_kind
126127from mypyc .options import CompilerOptions
@@ -1281,6 +1282,12 @@ def load_complex(self, value: complex) -> Value:
12811282 """Load a complex literal value."""
12821283 return self .add (LoadLiteral (value , object_rprimitive ))
12831284
1285+ def load_tuple (self , value : tuple [Any , ...]) -> Value : # should this be RTuple? conditional RTuple when length is known?
1286+ return self .add (LoadLiteral (value , tuple_rprimitive ))
1287+
1288+ def load_dict (self , value : dict [Any , Any ]) -> Value :
1289+ return self .add (LoadLiteral (value , dict_rprimitive ))
1290+
12841291 def load_static_checked (
12851292 self ,
12861293 typ : RType ,
You can’t perform that action at this time.
0 commit comments