β Problem Statement
Because Python is dynamically typed, passing the wrong data type to a function (e.g., a string instead of an int in a math script) causes runtime crashes. Without type hints, maintaining large scripts is difficult.
π Proposed Enhancement
Add Python 3 standard type hints (int, str, List, Optional) to all function signatures and complex variables across the repository, and enforce them in CI using mypy.
π οΈ Suggested Implementation
- Add type hints to all def statements: def calculate_score(points: int, bonus: float) -> float:
- Add mypy to the requirements.txt.
- Add a mypy . step to the GitHub Actions workflow.
Additional Notes
β Problem Statement
Because Python is dynamically typed, passing the wrong data type to a function (e.g., a string instead of an int in a math script) causes runtime crashes. Without type hints, maintaining large scripts is difficult.
π Proposed Enhancement
Add Python 3 standard type hints (int, str, List, Optional) to all function signatures and complex variables across the repository, and enforce them in CI using mypy.
π οΈ Suggested Implementation
Additional Notes