Skip to content

Conversation

@gkreitz
Copy link
Contributor

@gkreitz gkreitz commented Mar 24, 2025

This PR adds a type checking step to our CI tests using mypy.

For files where type checking flagged an error and it was obvious to me what the fix was, I fixed the problem. Otherwise, I (hopefully temporarily) used ignore_errors to avoid blowing up this PR completely.

The sole file with larger changes in this PR is verifyproblem.py, as I felt it was the most important file to get type checking coverage for. There, the way we access problemparts (introduced in #286) via problem.classes turned out to be particularly problematic. I know the intent is to follow up #286 with restructuring to avoid that access completely, but to get this past type checking in a decently clean way, I added a new method getProblemPart to replace access via .classes.

@pehrsoderman pehrsoderman merged commit 18a94d4 into Kattis:develop Mar 24, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants