### Summary

Add type hints to `ansible.utils.display::Display`

### Issue Type

Feature Idea

### Component Name

lib/ansible/utils/display.py
'''
        Sets attributes from the task if they are set, which will override
        those from the play.
        :arg task: the task object with the parameters that were set on it
        :arg variables: variables from inventory
        :arg templar: templar instance if templating variables is needed
        '''
        new_info = self.copy()
        
        
        for attr in TASK_ATTRIBUTE_OVERRIDES:
            if (attr_val := getattr(task, attr, None)) is not None:
                setattr(new_info, attr, attr_val)
        
        
        
        
        
        if task.delegate_to is not None:
            
            
            
            delegated_host_name = templar.template(task.delegate_to)
            delegated_vars = variables.get('ansible_delegated_vars', dict()).get(delegated_host_name, dict())
            delegated_transport = C.DEFAULT_TRANSPORT
            for transport_var in C.MAGIC_VARIABLE_MAPPING.get('connection'):
                if transport_var in delegated_vars:
                    delegated_transport = delegated_vars[transport_var]