Skip to content

Commit becfeac

Browse files
Unexclude _file_utils folder (#33988)
* unexclude _file_utils folder * update * update _ml_client.py
1 parent 0786ab8 commit becfeac

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/_file_utils/file_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# ---------------------------------------------------------
44
import os
55
from pathlib import Path
6+
from typing import Union
67

78

89
def get_root_path() -> str:
@@ -32,7 +33,7 @@ def traverse_up_path_and_find_file(path, file_name, directory_name=None, num_lev
3233
:return: Path to the file that we found, or an empty string if we couldn't find the file.
3334
:rtype: str
3435
"""
35-
current_path = Path(path)
36+
current_path: Union[Path, str] = Path(path)
3637
if directory_name is not None:
3738
file_name = os.path.join(directory_name, file_name)
3839

sdk/ml/azure-ai-ml/azure/ai/ml/_local_endpoints/validators/environment_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _get_cloud_environment_artifacts(
107107
"""
108108
if environment_asset.build and environment_asset.build.path and is_url(environment_asset.build.path):
109109
environment_build_directory = download_artifact_from_storage_url(
110-
blob_url=environment_asset.build.path,
110+
blob_url=str(environment_asset.build.path),
111111
destination=download_path,
112112
datastore_operation=environment_operations._datastore_operation,
113113
datastore_name="workspaceartifactstore",

sdk/ml/azure-ai-ml/azure/ai/ml/_ml_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,7 @@ def from_config(
707707
"""
708708

709709
path = Path(".") if path is None else Path(path)
710+
found_path: Optional[Union[Path, str]]
710711

711712
if path.is_file():
712713
found_path = path

sdk/ml/azure-ai-ml/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ exclude = [
2929
"tests",
3030
"setup.py",
3131
"samples",
32-
"azure/ai/ml/_file_utils/",
3332
"azure/ai/ml/_logging/",
3433
"azure/ai/ml/_utils",
3534
"azure/ai/ml/exceptions.py",

0 commit comments

Comments
 (0)