Skip to content

Fix ty type checker errors and warnings#606

Merged
arcticfly merged 1 commit intomainfrom
fix-ty-type-errors
Mar 8, 2026
Merged

Fix ty type checker errors and warnings#606
arcticfly merged 1 commit intomainfrom
fix-ty-type-errors

Conversation

@arcticfly
Copy link
Collaborator

Summary

  • Suppress false-positive possibly-missing-attribute warnings for torch.distributed calls in megatron training (lazily-loaded module)
  • Remove redundant cast() calls in tokenize.py, client.py, and qwen3.py
  • Suppress platform-specific unresolved-attribute error for os.sched_getaffinity (Linux-only, already guarded by try/except)

Test plan

  • uv run prek run --all-files passes locally

🤖 Generated with Claude Code

Suppress false-positive torch.distributed warnings, remove redundant
casts, and suppress platform-specific os.sched_getaffinity error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@arcticfly arcticfly merged commit 5593918 into main Mar 8, 2026
2 of 3 checks passed
@arcticfly arcticfly deleted the fix-ty-type-errors branch March 8, 2026 01:38
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