SInce when does python3 use this syntax?

I was doing a problem and it began like this :

class Solution:
    def twoSum(self, nums: List[int], target: int) -> List[int]:

how can a funcion parameter include spaces and colons?

thanks

Comments (1)