copy.deepcopy(dict(cmd.__dict__))
command_class_name = "weather.TodayWeather"
cmd = tools.get_attr_recursive(scripts, command_class_name)
self.commands = []
cmd = SomeClass
print(cmd.run_args)
# {"count": 1}
self.commands["гифка"] = type(cmd.__name__, cmd.__bases__, dict(cmd.__dict__))
self.commands["гифка"].name = "гифка"
self.commands["гифка"].run_args.update({"count": 1})
print(cmd.run_args, self.commands["гифка"].run_args)
# {"count": 1} {"count": 1}
# пока всё идёт по плану
cmd = SomeClass
self.commands["гифки"] = type(cmd.__name__, cmd.__bases__, dict(cmd.__dict__))
self.commands["гифки"].name = "гифки"
self.commands["гифки"].run_args.update({"count": 6})
print(cmd.run_args, self.commands["гифки"].run_args, self.commands["гифка"].run_args)
# {"count": 6} {"count": 6} {"count": 6}
command = scripts.weather.TodayWeather