def paste(self, *args):
        """ Usage: paste([PSMRL], text)

        If a pattern is specified, the pattern is clicked first. Doesn't support text paths.
        ``text`` is pasted as is using the OS paste shortcut (Ctrl+V for Windows/Linux, Cmd+V
        for OS X). Note that `paste()` does NOT use special formatting like `type()`.
        """
        target = None
        text = ""
        if len(args) == 1 and isinstance(args[0], basestring):
            text = args[0]
        elif len(args) == 2 and isinstance(args[1], basestring):
            self.click(target)
            text = args[1]
        else:
            raise TypeError("paste method expected [PSMRL], text")

        pyperclip.copy(text)
        # Triggers OS paste for foreground window
        PlatformManager.osPaste()
        time.sleep(0.2)
def paste ( self , * args ) : target = None text = "" if len ( args ) == 1 and isinstance ( args [ 0 ] , basestring ) : text = args [ 0 ] elif len ( args ) == 2 and isinstance ( args [ 1 ] , basestring ) : self . click ( target ) text = args [ 1 ] else : raise TypeError ( "paste method expected [PSMRL], text" ) pyperclip . copy ( text ) PlatformManager . osPaste ( ) time . sleep ( 0.2 )
Usage: paste([PSMRL], text)

        If a pattern is specified, the pattern is clicked first. Doesn't support text paths.
        ``text`` is pasted as is using the OS paste shortcut (Ctrl+V for Windows/Linux, Cmd+V
        for OS X). Note that `paste()` does NOT use special formatting like `type()`.