cleanlab / cleanlab/cleanvision
create a mypy type for imagelab.info
- 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
Assessment
This issue has not been assessed yet.