fix: call get_class_str positionally for aarecommon compat

aarecommon 0.2.2 declares a parameter literally named cls while newer
releases bind cls as the receiver, so the keyword form fails on one
side or the other; the positional call works on both. The sibling call
site already did this.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
duan_jandClaude Fable 5 committed 2026-08-07 17:26:14 +02:00
1 parent c229021e65
commit 4d2a767ad1
1 file changed
+4 -1
+4 -1
View File
@@ -359,7 +359,10 @@ class MlBox:
logger.debug(f"Failed to parse prediction: {e}", exc_info=True)
continue
base_key = MLOutputModel.get_class_str(cls=cls)
# Positional: aarecommon 0.2.2 takes a parameter literally named
# "cls" while newer releases bind cls as the receiver, so the
# keyword form breaks on one side or the other.
base_key = MLOutputModel.get_class_str(cls)
if base_key not in out.boxes:
out.boxes[base_key] = MLBoxModel(
cls=cls,