Skip to content

Conversation

@vEnhance
Copy link
Owner

Replaced pyright with Astral's ty type checker and fixed all newly caught type issues.

claude and others added 3 commits December 27, 2025 04:20
Replaced pyright with Astral's ty type checker and fixed all newly
caught type issues.

Changes:
- Updated pyproject.toml: replaced pyright with ty (v0.0.7)
- Created [tool.ty] configuration matching previous pyright settings
- Updated Makefile: replaced 'pyright .' with 'ty check .'
- Updated CLAUDE.md documentation to reference ty instead of pyright
- Added uv extra-build-dependencies for django-positions and mysqlclient

Fixed type issues identified by ty:
- arch/views.py: Added queryset parameter to get_form() override
- dashboard/views.py: Changed context |= to context.update() and fixed
  super().dispatch() call
- markets/views.py: Added queryset parameter to get_object() overrides
- opal/views.py: Changed setup() signature from AuthHttpRequest to
  HttpRequest and added isinstance check for has_early_access()
- otisweb_testsuite/fixtures.py: Added str() cast for redirect_url
- payments/views.py: Added queryset parameter to get_object() overrides
- roster/forms.py: Added type: ignore for UnitChoiceField kwargs
- rpg/levelsys.py: Changed LevelInfoDict = None to LevelInfoDict | None
- rpg/views.py: Changed context |= to context.update()
- suggestions/views.py: Changed super(CreateView, self) to super()

All tests pass (173 passed).
@vEnhance
Copy link
Owner Author

vEnhance commented Dec 27, 2025

got excited but i think ty isn't ready for django yet unless i missed something
worth a shot i guess.

@vEnhance vEnhance closed this Dec 27, 2025
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.

3 participants