Skip to content

Conversation

@max-sixty
Copy link
Owner

Summary

  • Replace mypy pre-commit hook with local ty check hook
  • Remove mypy from dev dependencies and [tool.mypy] configuration
  • Fix type errors caught by ty in pytest_accept/assert_plugin.py

Test plan

  • ty check passes
  • pre-commit run --all-files passes
  • pytest passes (59 passed, 1 skipped, 1 xfailed)

🤖 Generated with Claude Code

- Replace mypy pre-commit hook with local ty check hook
- Remove mypy from dev dependencies and configuration
- Fix type errors caught by ty:
  - Add type_ignores=[] to ast.Module() for Python 3.11+
  - Add type: ignore for intentional method monkey-patching
  - Wrap tb_entry.path with Path() for str|Path union
  - Add isinstance check for ast.Compare type narrowing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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