1- """
2- ``click`` options regarding targets.
3- """
1+ """``click`` options regarding targets."""
42
53from collections .abc import Callable
64from enum import Enum , unique
2018
2119@beartype
2220def target_name_option (* , required : bool ) -> Callable [..., Any ]:
23- """
24- An option decorator for choosing a target name.
25- """
21+ """An option decorator for choosing a target name."""
2622 return click .option (
2723 "--name" ,
2824 type = str ,
@@ -33,9 +29,7 @@ def target_name_option(*, required: bool) -> Callable[..., Any]:
3329
3430@beartype
3531def target_width_option (* , required : bool ) -> Callable [..., Any ]:
36- """
37- An option decorator for choosing a target width.
38- """
32+ """An option decorator for choosing a target width."""
3933 option : Callable [..., Any ] = click .option (
4034 "--width" ,
4135 type = float ,
@@ -47,9 +41,7 @@ def target_width_option(*, required: bool) -> Callable[..., Any]:
4741
4842@beartype
4943def target_image_option (* , required : bool ) -> Callable [..., Any ]:
50- """
51- An option decorator for choosing a target image.
52- """
44+ """An option decorator for choosing a target image."""
5345 return click .option (
5446 "--image" ,
5547 "image_file_path" ,
@@ -66,9 +58,7 @@ def target_image_option(*, required: bool) -> Callable[..., Any]:
6658
6759@unique
6860class ActiveFlagChoice (Enum ):
69- """
70- Choices for active flag.
71- """
61+ """Choices for active flag."""
7262
7363 TRUE = "true"
7464 FALSE = "false"
@@ -78,9 +68,7 @@ def active_flag_option(
7868 * ,
7969 allow_none : bool ,
8070) -> Callable [..., Any ]:
81- """
82- An option decorator for setting a target's active flag.
83- """
71+ """An option decorator for setting a target's active flag."""
8472 if allow_none :
8573 default = None
8674 show_default = False
0 commit comments