cleanlab / cleanlab/cleanvision

create a mypy type for imagelab.info

Open
#124 2 comments 0 reactions 1 assignee Claimed by @sanjanag View on GitHub
good first issue
Dominant language
Python
Stars
1.2k
Forks
83
PR merge metrics
No merged PRs in 30d

Description

`imagelab.info` is an `Imagelab` class attribute designed to be a nested dictionary containing information relevant to the computation of issue types.
Right now the type assigned to imagelab.info is `Dict[str, Any]` which is very loose.
The task is to define a type alias for the variable that is tight in its definition and replaces the `Any` with the actual types that could be present in the dictionary.
Check [this](https://docs.python.org/3/library/typing.html#type-aliases) link for more details on how to create type aliases.
Refer to the [documentation](https://cleanvision.readthedocs.io/en/latest/) for more details on `imagelab.info`.

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.