pyvista.core._validation.check.check_contains#
- check_contains( ) None [ソース]#
Check if an item is in a container.
- パラメータ:
- container
Any
Container to check.
- must_contain
Any
Item which must be in the container.
- name
str
, default: "Input" エラーメッセージが発生した場合に使用する変数名.
- container
- エラー処理:
ValueError
If the item is not in the container.
例
"A"` が文字列のリストの中にあるかどうかをチェックします.
>>> from pyvista import _validation >>> _validation.check_contains(['A', 'B', 'C'], must_contain='A')