"All functions should have parameters and output annotated with type hints. Use list, tuple and dict instead of typing.List, typing.Tuple and typing.dict."
Description
This PR adds type hints to the parameters and output of two functions in the file "sweepai/utils/github_utils.py". The functions are "get_project_id" and "get_gitlab_client".
The type hints for the parameters and output of these functions are already provided in the issue description. The user wants to ensure that all functions in the file have parameters and output annotated with type hints.
Summary of Changes
Added type hints to the "get_gitlab_client" function. The function takes one parameter "access_token" which is of type str. The function returns an instance of gitlab.Gitlab.
Added type hints to the "get_project_id" function. The function takes two parameters "gitlab_instance" and "namespace", "project_name" which are of type gitlab.Gitlab and str respectively. The function returns an integer which is the project id.
These changes will help in understanding the type of parameters that a function expects and the type of value it returns. This can be helpful in preventing bugs and making the code easier to understand.
PR Feedback (click)
I created this PR to address this rule:
"All functions should have parameters and output annotated with type hints. Use list, tuple and dict instead of typing.List, typing.Tuple and typing.dict."
Description
This PR adds type hints to the parameters and output of two functions in the file "sweepai/utils/github_utils.py". The functions are "get_project_id" and "get_gitlab_client".
The type hints for the parameters and output of these functions are already provided in the issue description. The user wants to ensure that all functions in the file have parameters and output annotated with type hints.
Summary of Changes
These changes will help in understanding the type of parameters that a function expects and the type of value it returns. This can be helpful in preventing bugs and making the code easier to understand.