Skip to content

Fix mypy errors in pytest_ofrak and enforce it in CI#703

Open
ANogin wants to merge 2 commits into
redballoonsecurity:masterfrom
ANogin:maintenance/pytest_ofrak
Open

Fix mypy errors in pytest_ofrak and enforce it in CI#703
ANogin wants to merge 2 commits into
redballoonsecurity:masterfrom
ANogin:maintenance/pytest_ofrak

Conversation

@ANogin
Copy link
Copy Markdown
Contributor

@ANogin ANogin commented Feb 4, 2026

  • I have reviewed the OFRAK contributor guide and attest that this pull request is in accordance with it.
  • I have made or updated a changelog entry for the changes in this pull request.

One sentence summary of this PR (This should go in the CHANGELOG!)

Fix mypy type errors across the package

Link to Related Issue(s)

N/A

Please describe the changes in your request.

  • Add mypy.ini and make inspect target to run mypy
  • Fix type annotations: return types, async methods, generic parameters
  • Only generate make test root Makefile target in develop builds (where pytest_ofrak is installed), and include $(MAKE) -C pytest_ofrak inspect in it

Anyone you think should look at this, specifically?

Not sure, @whyitfor should probably decide

- Add mypy.ini and `make inspect` target to run mypy
- Fix type annotations: return types, async methods, generic parameters
- Only generate `make test` targets in develop builds (where pytest_ofrak is installed)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ANogin ANogin requested a review from whyitfor February 4, 2026 19:55
@ANogin ANogin self-assigned this Feb 4, 2026
Workaround for python/mypy#12633, fixed in mypy 0.950.
Explicit type redeclarations in subclasses can be removed once using a newer mypy.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
ANogin pushed a commit that referenced this pull request Feb 8, 2026
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.

1 participant