Type in unannotated function



examples/python-types-at-pyweb-2025-05/unannotated_function.py
def do_something():
    answer :str = 42
    print(answer)

do_something()

$ mypy unannotated_function.py

$ mypy --check-untyped-def unannotated_function.py

$ mypy --strict unannotated_function.py