mypy: Add specific codes to type: ignore annotations.

https://mypy.readthedocs.io/en/stable/error_codes.html

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg
2020-04-21 19:13:37 -07:00
committed by Tim Abbott
parent 029bfb9fee
commit f8c95cda51
37 changed files with 145 additions and 140 deletions

View File

@@ -494,7 +494,7 @@ do not match the types declared in the implementation of {}.\n""".format(functio
# possible.
vtype = self.get_standardized_argument_type(function.__annotations__[vname])
vname = defval.post_var_name # type: ignore # See zerver/lib/request.py
vname = defval.post_var_name # type: ignore[attr-defined] # See zerver/lib/request.py
function_params.add((vname, vtype))
diff = openapi_params - function_params