We have shown how to inject dependencies through the constructor, but we can easily inject them by setting directly the object properties, unlocking even more potential: command = Command() if in_sudo_mode: command.authenticate = always_authenticated command.authorize = always_authorized else: comma...