cleanlab / cleanlab/cleanvision

mypy stubs for non-trivial datatypes

Open
#178 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
1.2k
Forks
83
PR merge metrics
No merged PRs in 30d

Description

There are places in codebase like [this](https://github.com/cleanlab/cleanvision/blob/main/src/cleanvision/utils/viz_manager.py#LL32C58-L32C60) where `mypy` won't be to detect variable's type and it will be termed as `Any`.

![Screenshot 2023-05-16 at 2 21 02 AM](https://github.com/cleanlab/cleanvision/assets/34245555/82775029-552e-45a6-adbe-e97057cf3184)

Are we planning to add any mypy stubs for such variables?
I am interested in this because in #124, one of the possible types of `imagelab.info` is `pd.Series` or `pd.DataFrame` but if we are not using stubs like [pandas stubs](https://github.com/pandas-dev/pandas-stubs) then `mypy` will consider them (pd.Series) to `Any` datatype.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.