Skip to content

Improve Python Typing #333

@bcollazo

Description

@bcollazo

Ctrl + Clicking on State fields like .actions doesn't really point towards all usages in the codebase. This can be improved if we use Python's Typing module. This issue calls to slowly but surely (need not be all in one PR) we keep typing the codebase as much as possible.

Example:
Before

def player_clean_turn(state, color):

After

def player_clean_turn(state: State, color: Color):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions