Skip to content

Commit 09caf35

Browse files
committed
add
1 parent b1ff672 commit 09caf35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

annofabapi/util/annotation_specs.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def get_choice(choices: list[dict[str, Any]], *, choice_id: Optional[str] = None
6969
choice_name: 選択肢名(英語)
7070
7171
Raises:
72-
ValueError: 'choice_id'か'choice_name'の指定方法が間違っている。または引数に合致する選択肢情報が見つからない。
72+
ValueError: 'choice_id'か'choice_name'の指定方法が間違っている。または引数に合致する選択肢情報が見つからない。または複数見つかった。
7373
7474
"""
7575
if choice_id is not None and choice_name is not None:
@@ -98,7 +98,7 @@ def get_attribute(additionals: list[dict[str, Any]], *, attribute_id: Optional[s
9898
attribute_name: 属性名(英語)
9999
100100
Raises:
101-
ValueError: 'attribute_id'か'attribute_name'の指定方法が間違っている。または引数に合致する属性情報が見つからない。
101+
ValueError: 'attribute_id'か'attribute_name'の指定方法が間違っている。または引数に合致する属性情報が見つからない。または複数見つかった。
102102
"""
103103
if attribute_id is not None and attribute_name is not None:
104104
raise ValueError("'attribute_id'か'attribute_name'のどちらかはNoneにしてください。")
@@ -126,7 +126,7 @@ def get_label(labels: list[dict[str, Any]], *, label_id: Optional[str] = None, l
126126
label_name: ラベル名(英語)
127127
128128
Raises:
129-
ValueError: 'label_id'か'label_name'の指定方法が間違っている。または引数に合致するラベル情報が見つからない。
129+
ValueError: 'label_id'か'label_name'の指定方法が間違っている。または引数に合致するラベル情報が見つからない。または複数見つかった。
130130
131131
"""
132132
if label_id is not None and label_name is not None:

0 commit comments

Comments
 (0)