11"""Client presentation methods for projects."""
2+
23import warnings
34from collections .abc import Generator , Iterable
45from typing import (
@@ -284,6 +285,7 @@ def update_properties_in_project(
284285 description : Optional [str ] = None ,
285286 honeypot_mark : Optional [float ] = None ,
286287 instructions : Optional [str ] = None ,
288+ input_type : Optional [InputType ] = None ,
287289 json_interface : Optional [dict ] = None ,
288290 min_consensus_size : Optional [int ] = None ,
289291 review_coverage : Optional [int ] = None ,
@@ -312,6 +314,7 @@ def update_properties_in_project(
312314 description: Description of the project.
313315 honeypot_mark: Should be between 0 and 1
314316 instructions: Instructions of the project.
317+ input_type: DEPRECATED. Currently, one of `IMAGE`, `PDF`, `TEXT` or `VIDEO`.
315318 json_interface: The json parameters of the project, see Edit your interface.
316319 min_consensus_size: Should be between 1 and 10
317320 Number of people that will annotate the same asset, for consensus computation.
@@ -386,6 +389,10 @@ def update_properties_in_project(
386389
387390 !!! note "Deprecated: Change Metadata Types"
388391 The `metadata_types` parameter is deprecated. Please use `metadata_properties` instead.
392+
393+ !!! note "Deprecated: Input Type"
394+ The `input_type` parameter is deprecated. The input type of a project cannot be changed after
395+ its creation.
389396 """
390397 if seconds_to_label_before_auto_assign is not None :
391398 warnings .warn (
@@ -403,6 +410,14 @@ def update_properties_in_project(
403410 stacklevel = 1 ,
404411 )
405412
413+ if input_type is not None :
414+ warnings .warn (
415+ "input_type is deprecated. The input type of a project cannot be"
416+ " changed after its creation." ,
417+ DeprecationWarning ,
418+ stacklevel = 1 ,
419+ )
420+
406421 return ProjectUseCases (self .kili_api_gateway ).update_properties_in_project (
407422 ProjectId (project_id ),
408423 can_navigate_between_assets = can_navigate_between_assets ,
0 commit comments