people, I have a question about names. In the following example, what do you call the first line of this function (everything from `def` through the colon)?

Followup question: When someone refers to the "function definition" does that make you think of the entire function, or just part of it?

def report_observation(bird: str) -> str:
    """Report a birding observation."""
    return f"A {bird} was seen during the count period."

msg = report
print(msg)
0

If you have a fediverse account, you can quote this note from your own instance. Search https://fosstodon.org/users/ehmatthes/statuses/116003383985026306 on your instance and quote it. (Note that quoting is not supported in Mastodon.)