Skip to main content
IBM Quantum Platform
翻訳情報

このページの追加言語翻訳は近日公開予定です。

validate_literals

samplomatic.utils.validate_literals(*arg_names: str) → Callable

GitHub

Return a decorator to validate function arguments against literal type annotations.

Parameters

*arg_names – The arguments to validate the values of against their Literal type annotations.

Returns

A decorator that wraps a function in a validation routine.

このページは役に立ちましたか?
バグや誤字の報告、またはコンテンツの要求はGitHubで行ってください。