Skip to content

Add Type Hints to jam.py #2

@UnitaryIron

Description

@UnitaryIron

Task

Add Python type hints to all functions in jam.py.

Goal

We want to improve code readability, provide better IDE support, and catch type-related bugs early through static analysis.

Suggested Approach

  • Review each function in jam.py.
  • Add type annotations for parameters and return types.
  • Use standard types from typing like List, Dict, Union, etc.
  • After adding, validate using a type checker like mypy.

Requirements

  • Familiarity with Python type hints (PEP 484).
  • Ability to interpret function logic to deduce types.

References

Difficulty

Beginner to Intermediate

If you're new to open source, check out our Contributing Guide in the repository. Feel free to ask questions in our Discord: https://discord.gg/GgB8hbvR

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions