I'd suggest removing the duplicate usage of the word 'ways':
`The following are all valid ways of annotating a function...`