Recently I noticed how important leaving comment or some kind of explanation in script. So I decided to add annotation to my python script for processing image object.
Then, how should I annotate image object or just numpy.ndarray object ? I want to clarify that input images for the function must have 3 channels.
Here is my current example code. But I'm not satisfied.
def proc(image: numpy.ndarray) -> numpy.ndarray:
print("hi")
return image
Sorry for my poor English, please give me some advices.