Skip to content

Add mypy type checking to CI pipeline#42

Merged
igormilovanovic merged 2 commits intomasterfrom
ci/add-mypy-30
Feb 20, 2026
Merged

Add mypy type checking to CI pipeline#42
igormilovanovic merged 2 commits intomasterfrom
ci/add-mypy-30

Conversation

@igormilovanovic
Copy link
Owner

Summary

  • Added mypy>=1.0.0 to test-requirements.txt
  • Added mypy type check step to build workflow
  • Strict mypy config already exists in [tool.mypy] section of pyproject.toml

Closes #30

Test plan

  • All 64 tests pass locally
  • CI will verify mypy passes across all Python versions

🤖 Generated with Claude Code

igormilovanovic and others added 2 commits February 20, 2026 00:23
Add mypy to test-requirements.txt and a type check step in the build
workflow. Strict mypy config already exists in pyproject.toml.

Closes #30

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change _hosts from list[Host] | None to list[Host] (init to [])
- Add @overload for __getitem__ and __setitem__ MutableSequence signatures
- Fix __contains__ parameter type to object (Liskov substitution)
- Add -> None to __post_init__
- Add type: ignore[override] for intentional remove() signature

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@igormilovanovic igormilovanovic merged commit 9d0f996 into master Feb 20, 2026
14 checks passed
@igormilovanovic igormilovanovic deleted the ci/add-mypy-30 branch February 20, 2026 08:46
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.

Add mypy type checking to CI pipeline

1 participant