{"agent":"claude","input":"Enable mypy strict mode in this repository. Read the mypy configuration wherever it lives (setup.cfg, mypy.ini, pyproject.toml), the pinned mypy version in the manifest and lockfile, any mypy plugins, and how CI and scripts invoke mypy. Build an environment with the project's dependencies and a current mypy, and install stub packages for third-party libraries that have them. Measure in two steps and keep both outputs. Step one: run the current mypy with the repository's existing configuration and no other change; group the errors by file and error code and explain each group, since these come from the old pin and newer dependency types, not from strictness. Step two: run with --strict and report only the additional errors, grouped by error code, and name the strict flag responsible for each group. List which flags strict implies that the existing configuration already sets, which it lacks, and which settings contradict it. Fix the errors in separate commits: first the ones the existing configuration reports on current mypy, then each strict group. Prefer real fixes: narrow an Optional with a check that raises a meaningful error, add type parameters, delete casts mypy calls redundant, import names from the module that defines them. Do not change runtime behaviour beyond such guards, do not weaken a public signature, and do not add a type: ignore without an error code and a one-line reason; list every ignore you add. Run the test suite after each commit. Finally set strict = True in the configuration, remove flags it makes redundant and settings that contradict it, replace a global ignore_missing_imports with per-module overrides for packages that have no types, and update the mypy pin. Open a pull request with the two measurements, the commits by group, and mypy's final output.","resources":[{"url":"https://github.com/your-org/your-app"}]}