Skip to content

Tags: tmustier/python-typing

Tags

v0.1.1

Toggle v0.1.1's commit message
Add strict typing to all scripts and tests

- All scripts and tests now pass pyright strict mode (0 errors)
- Add from __future__ import annotations for Python 3.9 compatibility
- Add proper type annotations to all functions
- Configure pyright with venv discovery for pytest types
- Fix CompletedProcess[str] return types in test helpers

The skill now dogfoods itself - eating our own cooking!

v0.1.0

Toggle v0.1.0's commit message
Add test suite with fixtures

Tests:
- test_init.py: 10 tests for init_typing.py script
- test_analyze.py: 8 tests for analyze_typing.py script
- All 18 tests passing

Fixtures:
- untyped/: 44 pyright errors (no type hints)
- partial/: 16 errors (some hints, Optional issues)
- third_party/: 11 errors (missing stubs scenario)

Fixes:
- Python 3.9 compatibility (from __future__ import annotations)
- analyze_typing.py: fix severity check ('error' not 1)