File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1123,9 +1123,9 @@ class CallSpec2:
1123
1123
# arg name -> arg index.
1124
1124
indices : Dict [str , int ] = dataclasses .field (default_factory = dict )
1125
1125
# Used for sorting parametrized resources.
1126
- _arg2scope : Dict [str , Scope ] = dataclasses .field (default_factory = dict )
1126
+ _arg2scope : Mapping [str , Scope ] = dataclasses .field (default_factory = dict )
1127
1127
# Parts which will be added to the item's name in `[..]` separated by "-".
1128
- _idlist : List [str ] = dataclasses .field (default_factory = list )
1128
+ _idlist : Sequence [str ] = dataclasses .field (default_factory = tuple )
1129
1129
# Marks which will be applied to the item.
1130
1130
marks : List [Mark ] = dataclasses .field (default_factory = list )
1131
1131
@@ -1141,7 +1141,7 @@ def setmulti(
1141
1141
) -> "CallSpec2" :
1142
1142
params = self .params .copy ()
1143
1143
indices = self .indices .copy ()
1144
- arg2scope = self ._arg2scope . copy ( )
1144
+ arg2scope = dict ( self ._arg2scope )
1145
1145
for arg , val in zip (argnames , valset ):
1146
1146
if arg in params :
1147
1147
raise ValueError (f"duplicate parametrization of { arg !r} " )
You can’t perform that action at this time.
0 commit comments