Skip to content

Commit 020e26e

Browse files
author
rikunosuke
committed
black
1 parent ba3483b commit 020e26e

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

fastlabel/__init__.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4149,16 +4149,12 @@ def update_project_user_permission(
41494149
project is the slug of the project (Required).
41504150
email is the email address of the user (Required).
41514151
role is the role of the user in the project (Required).
4152-
role can be 'annotator', 'reviewer', 'owner',
4153-
'external_annotator', 'external_reviewer', 'external_approver',
4152+
role can be 'annotator', 'reviewer', 'owner',
4153+
'external_annotator', 'external_reviewer', 'external_approver',
41544154
'external_sub_owner', 'external_owner', or 'none' to remove user from project.
41554155
"""
41564156
endpoint = "projects-users"
4157-
payload = {
4158-
"project": project,
4159-
"email": email,
4160-
"role": role
4161-
}
4157+
payload = {"project": project, "email": email, "role": role}
41624158
return self.api.put_request(endpoint, payload=payload)
41634159

41644160
# Tags
@@ -4704,9 +4700,11 @@ def execute_training_job(
47044700
"learningRate": learning_rate,
47054701
"resizeOption": resize_option,
47064702
"resizeDimension": resize_dimension,
4707-
"configFile": utils.base64_encode(str(config_file_path))
4708-
if config_file_path is not None
4709-
else None,
4703+
"configFile": (
4704+
utils.base64_encode(str(config_file_path))
4705+
if config_file_path is not None
4706+
else None
4707+
),
47104708
}
47114709
if annotation_value:
47124710
payload["annotationValue"] = annotation_value

fastlabel/utils/mask_image_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def mask_to_polygon(mask_image: Union[str, np.ndarray]) -> list[list[list[int]]]
2727

2828

2929
def mask_to_segmentation(
30-
mask_image: Union[str, np.ndarray, Mat, UMat, Image]
30+
mask_image: Union[str, np.ndarray, Mat, UMat, Image],
3131
) -> list[list[list[int]]]:
3232
if isinstance(mask_image, str):
3333
mask_image_path = mask_image

0 commit comments

Comments
 (0)