requirements: Upgrade to mypy 0.560 & adjust generics flag.
This upgrades to the same mypy as zulip/zulip at this point.
MODIFY
py3_requirements.txt
py3_requirements.txt
-mypy==0.521
+mypy==0.560

MODIFY
tools/run-mypy
tools/run-mypy
@@ -128,7 +128,7 @@ mypy_command = "mypy"
extra_args = ["--check-untyped-defs",
"--follow-imports=silent",
"--scripts-are-modules",
- "--disallow-any=generics",
+ "--disallow-any-generics",
"-i"]
if args.disallow_untyped_defs:
extra_args.append("--disallow-untyped-defs")

requirements: Upgrade to mypy 0.560 & adjust generics flag.

This upgrades to the same mypy as zulip/zulip at this point.