Skip to content

Fix get_roles return type: Dict[str, Role] (instead of List[Role]) #1904

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

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

FreekDB
Copy link
Contributor

@FreekDB FreekDB commented Nov 15, 2024

Description

The get_roles method in the Client class (in the libs/labelbox/src/labelbox/client.py file) returns the roles from the get_roles function in the libs/labelbox/src/labelbox/schema/role.py file. This function has return type Dict[str, "Role"], while the method in the Client class has return type List[Role]. This pull request proposes to change the return type of the Client.get_roles method to Dict[str, Role].

Type of change

Bug fix (non-breaking change which fixes an issue).

@FreekDB FreekDB requested a review from a team as a code owner November 15, 2024 09:10
@Gabefire Gabefire merged commit a1765b3 into Labelbox:develop Nov 20, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants