Skip to content

Commit 9b6ff02

Browse files
Copilotbaijumeswani
andcommitted
Fix code review: use public variants property instead of private _variants in Catalog
Agent-Logs-Url: https://github.com/microsoft/Foundry-Local/sessions/8082508c-1338-48b2-bdd3-6c2c8e35e195 Co-authored-by: baijumeswani <12852605+baijumeswani@users.noreply.github.com>
1 parent 4942e02 commit 9b6ff02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sdk/python/src/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def get_latest_version(self, model_or_variant: IModel) -> IModel:
171171

172172
# variants are sorted by version, so the first one matching the name is the latest version.
173173
latest = None
174-
for v in model._variants:
174+
for v in model.variants:
175175
if v.info.name == model_or_variant.info.name:
176176
latest = v
177177
break

0 commit comments

Comments
 (0)