### Summary

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

### Issue Type

Feature Idea

### Component Name

lib/ansible/utils/display.py
count = ' count=0'
                    else:
                        count = ''
                    (returncode, stdout, stderr) = self.exec_command('dd of=%s bs=%s%s' % (out_path, BUFSIZE, count), in_data=in_data, sudoable=False)
            
            if returncode == 0:
                return (returncode, stdout, stderr)
            else:
                
                if len(methods) > 1:
                    display.warning(u'%s transfer mechanism failed on %s. Use ANSIBLE_DEBUG=1 to see detailed information' % (method, host))
                    display.debug(u'%s' % to_text(stdout))
                    display.debug(u'%s' % to_text(stderr))
        if returncode == 255:
            raise AnsibleConnectionFailure("Failed to connect to the host via %s: %s" % (method, to_native(stderr)))
        else:
            raise AnsibleError("failed to transfer file to %s %s:\n%s\n%s" %
                               (to_native(in_path), to_native(out_path), to_native(stdout), to_native(stderr)))
    def _escape_win_path(self, path: str) -> str:
        """ converts a Windows path to one that's supported by SFTP and SCP """
        
        prefix = ""
        if re.match(r'^\w{1}:', path):
            prefix = "/"
        
        return "%s%s" % (prefix, path.replace("\\", "/"))
    #
    
    #
    def exec_command(self, cmd: str, in_data: bytes | None = None, sudoable: bool = True) -> tuple[int, bytes, bytes]: