Skip to content

[DOC-FIX] Change type hint for method get_latest_versions to List[ModelVersion] #5155

@pbezglasny

Description

@pbezglasny

Thank you for submitting an issue. Please refer to our issue policy for information on what types of issues we address.

Please fill in this documentation issue template to ensure a timely and thorough response.

Willingness to contribute

The MLflow Community encourages documentation fix contributions. Would you or another member of your organization be willing to contribute a fix for this documentation issue to the MLflow code base?

  • Yes. I can contribute a documentation fix independently.
  • Yes. I would be willing to contribute a document fix with guidance from the MLflow community.
  • No. I cannot contribute a documentation fix at this time.

URL(s) with the issue:

Please provide a link to the documentation entry in question.
https://mlflow.org/docs/latest/python_api/mlflow.tracking.html#mlflow.tracking.MlflowClient.get_latest_versions

Description of proposal (what needs changing):

In code return type of method get_latest_versions is singular value of class ModelVersion, but in the documentation and code the method returns list of ModelVersion class object.

Need to change the type hint of return type to List[ModelVersion].

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docsDocumentation issues

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions