Skip to content

Consider adding a decorator that enforces types of arguments #94

@johndoknjas

Description

@johndoknjas

E.g., when I was quickly testing get_best_move, I forgot that it doesn't accept an FEN string. But the code still ran, and then this string was used for wtime, giving me unexpected results. One option is doing something like this for all public functions, although our docstrings are probably already good enough.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions