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:
11231123 # arg name -> arg index.
11241124 indices : Dict [str , int ] = dataclasses .field (default_factory = dict )
11251125 # 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 )
11271127 # 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 )
11291129 # Marks which will be applied to the item.
11301130 marks : List [Mark ] = dataclasses .field (default_factory = list )
11311131
@@ -1141,7 +1141,7 @@ def setmulti(
11411141 ) -> "CallSpec2" :
11421142 params = self .params .copy ()
11431143 indices = self .indices .copy ()
1144- arg2scope = self ._arg2scope . copy ( )
1144+ arg2scope = dict ( self ._arg2scope )
11451145 for arg , val in zip (argnames , valset ):
11461146 if arg in params :
11471147 raise ValueError (f"duplicate parametrization of { arg !r} " )
You can’t perform that action at this time.
0 commit comments