Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
triklozoid committed Oct 18, 2024
1 parent 8a3dbfc commit 0301877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion label_studio/io_storages/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
import re
from dataclasses import dataclass
from typing import Union

logger = logging.getLogger(__name__)

Expand All @@ -17,7 +18,7 @@ class BucketURI:
scheme: str


def get_uri_via_regex(data, prefixes=('s3', 'gs')) -> tuple[str | None, str | None]:
def get_uri_via_regex(data, prefixes=('s3', 'gs')) -> tuple[Union[str, None], Union[str, None]]:
data = str(data).strip()
middle_check = False

Expand Down

0 comments on commit 0301877

Please sign in to comment.