Module 1

greet(user)

Greet the user!

Parameters:

Name Type Description Default
user str

The name of the user.

required

Returns:

Name Type Description
string str

A greeting for the user.

Source code in pytemplates_typer_cli/core/module1.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
def greet(user: str) -> str:
    """Greet the user!

    Args:
        user: The name of the user.

    Returns:
        string: A greeting for the user.

    """

    return f"Hello {user}!"