Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a mypy type for imagelab.info #124

Open
sanjanag opened this issue Mar 15, 2023 · 2 comments
Open

create a mypy type for imagelab.info #124

sanjanag opened this issue Mar 15, 2023 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@sanjanag
Copy link
Member

sanjanag commented Mar 15, 2023

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 link for more details on how to create type aliases.
Refer to the documentation for more details on imagelab.info.

@Kadam-Tushar
Copy link
Contributor

Hi @sanjanag ,
can we use Dict[str, Dict[str, Any] for imagelab.info ?

@sanjanag
Copy link
Member Author

Hi @Kadam-Tushar ! The idea for creating a type for imagelab.info is that we pin down every type of object that can be present in the Dict, removing the use of Any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants