All option instances must not share the same color table

This commit is contained in:
Kovid Goyal
2021-07-31 18:44:39 +05:30
parent 6bfb704f6f
commit 0045244295
3 changed files with 15 additions and 2 deletions
+1
View File
@@ -606,6 +606,7 @@ class Options:
config_overrides: typing.Tuple[str, ...] = ()
def __init__(self, options_dict: typing.Optional[typing.Dict[str, typing.Any]] = None) -> None:
self.color_table = array(self.color_table.typecode, self.color_table)
if options_dict is not None:
for key in option_names:
setattr(self, key, options_dict[key])