Skip to content

Commit

Permalink
py: provide overloads for type-checking register_model
Browse files Browse the repository at this point in the history
Signed-off-by: Isabella Basso do Amaral <[email protected]>
  • Loading branch information
isinyaaa committed Mar 21, 2024
1 parent c6409e9 commit 9db2969
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions clients/python/src/model_registry/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,34 @@

import os

from typing_extensions import overload

from .exceptions import StoreException


@overload
def s3_uri_from(
path: str,
) -> str: ...


@overload
def s3_uri_from(
path: str,
bucket: str,
) -> str: ...


@overload
def s3_uri_from(
path: str,
bucket: str,
*,
endpoint: str,
region: str,
) -> str: ...


def s3_uri_from(
path: str,
bucket: str | None = None,
Expand Down

0 comments on commit 9db2969

Please sign in to comment.