File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2525from luxonis_ml .data .utils .parquet import ParquetRecord
2626from luxonis_ml .typing import PathType , check_type
2727from luxonis_ml .utils import BaseModelExtraForbid
28+ from luxonis_ml .utils .logging import log_once
2829
2930KeypointVisibility : TypeAlias = Literal [0 , 1 , 2 ]
3031NormalizedFloat : TypeAlias = Annotated [float , Field (ge = 0 , le = 1 )]
@@ -548,9 +549,9 @@ def validate_task_name_valid_identifier(self) -> Self:
548549 @classmethod
549550 def validate_task_name (cls , values : dict [str , Any ]) -> dict [str , Any ]:
550551 if "task" in values :
551- warnings .warn (
552+ log_once (
553+ logger .warning ,
552554 "The 'task' field is deprecated. Use 'task_name' instead." ,
553- stacklevel = 2 ,
554555 )
555556 values ["task_name" ] = values .pop ("task" )
556557 return values
You can’t perform that action at this time.
0 commit comments