Check that type arguments exist [type-arg]

If you use —disallow-any-generics, mypy requires that each generictype has values for each type argument. For example, the types List ordict would be rejected. You should instead use types like List[int] orDict[str, int]. Any omitted generic type arguments get implicit Anyvalues. The type List is equivalent to List[Any], and so on.

Example:

  1. # mypy: disallow-any-generics
  2.  
  3. from typing import List
  4.  
  5. # Error: Missing type parameters for generic type "List" [type-arg]
  6. def remove_dups(items: List) -> List:
  7. ...