Skip to content

[suggestion] adding type hints? #199

@sbdchd

Description

@sbdchd

I see this package supports python 2.7 so the type hints would have to be the comment variety:

https://web.archive.org/web/20220213164145/https://mypy.readthedocs.io/en/stable/cheat_sheet.html

Essentially:

def add(a, b):
    # type: (int, int) -> int
    return a + b

instead of:

def add(a: int, b: int) -> int:
    return a + b

edit: another option would be some type stub files .pyi

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