def hello_world(greeting: str = 'Hello'):
    print(greeting + ' world!')

Note the spaces around the equal sign as opposed to how keyword arguments are usually styled.