Skip to content

Type hint bug for frozenbitarray? #175

@larstokle

Description

@larstokle

It seems that type checkers give frozenbitarray() & bitarray() -> bitarray etc., whereas the implementation gives frozenbitarray. The implementation is a nice feature when one knows about it, and it would be nice if the type hints would reflect this.

It looks to me, after reading some mypy docs, like it perhaps can be solved with some TypeVar bound to bitarray for self and the return type in __init__.pyi. However, I do not know enough about bitarray and type hinting to know if this would be the way to go.

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