@@ -100,22 +100,22 @@ def override_options(
100100 if isinstance (config [k ], list ):
101101 # Clear out the existing list entries
102102 del config [k ][:]
103- if isinstance (override_dict [ k ] , str | int | float | bool ):
103+ if isinstance (v , str | int | float | bool ):
104104 # We have to treat str carefully because it is an iterable, but it will be expanded as
105105 # individual characters if it's treated the same as a list, which is not the desired
106106 # behavior! If we wrap it in [], then it will be treated as the only entry in the list
107107 # NOTE: We also treat the basic types this way because they will be passed this way if
108108 # overriding indirectly with anchors (since the basic scalar types don't yet support
109109 # reassignment while maintaining their anchors).
110- config [k ].append (override_dict [ k ] )
110+ config [k ].append (v )
111111 else :
112112 # Here we just assign all entries of the list to all entries of override_dict[k]
113- config [k ].extend (override_dict [ k ] )
113+ config [k ].extend (v )
114114 elif isinstance (config [k ], dict ):
115115 # Clear out the existing entries because we are trying to replace everything
116116 # Then we can simply update the dict with our new values
117117 config [k ].clear ()
118- config [k ].update (override_dict [ k ] )
118+ config [k ].update (v )
119119 elif isinstance (config [k ], int | float | bool ):
120120 # This isn't really very good (since we lose information), but there's nothing that can be done
121121 # about it at the moment (Dec 2018)
0 commit comments