Python type annotation for a sorted list

Viewed 413
def my_function(dist: list[int], clabels: list[int]):
    ...

What is the proper way to hint that the dist argument in my_function must be a sorted list of integers?

0 Answers
Related