from thefuck.shells import shell
from thefuck.specific.git import git_support


@git_support
def match(command):
    return ('pull' in command.script
            and ('You have unstaged changes' in command.stderr
            or 'contains uncommitted changes' in command.stderr))


@git_support
def get_new_command(command):
    return 'git stash && git pull && git stash pop'

from thefuck.shells import shell
from thefuck.specific.git import git_support


@git_support
def match(command):
    return ('pull' in command.script
            and ('You have unstaged changes' in command.stderr
            or 'contains uncommitted changes' in command.stderr))


@git_support
def get_new_command(command):
    return shell.and_('git stash', 'git pull', 'git stash pop')

Use `shell.and_`