Skip to content
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

Change type hint of return type of method get_latest_versions to List[ModelVersion] Fixes #5155 #5156

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlflow/tracking/client.py
Expand Up @@ -1980,7 +1980,7 @@ def print_model_info(rm):
"""
return self._get_registry_client().get_registered_model(name)

def get_latest_versions(self, name: str, stages: List[str] = None) -> ModelVersion:
def get_latest_versions(self, name: str, stages: List[str] = None) -> List[ModelVersion]:
"""
Latest version models for each requests stage. If no ``stages`` provided, returns the
latest version for each stage.
Expand Down