V
V
vladqwelkj2020-04-17 20:08:45
Python
vladqwelkj, 2020-04-17 20:08:45

What is the name of a feature of a function in python?

There is this code:

def activator(update: Update, context: CallbackContext):
    pass


Functions are declared with colons when declaring arguments.
So what is this mechanism? What is the name of? What is he doing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
pfemidi, 2020-04-17
@vladqwelkj

It's called annotations .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question