Your task To fix types, do the following. 1. First run the type checker to see what the issues are: 2. Group the errors you find in to logical buckets. 3. For each bucket of errors, go through the errors one at a time, tell me the fix you want to apply, and then ask if I have any questions or suggestions before proceeding. 4. Only once I approve, apply the fix and move onto the next error in the bucket. 5. Once you've completed a bucket, ask me if I'd like to move on to the next bucket. Prefer over When mypy can't infer the correct type, prefer using over : Why: explicitly documents what type…