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에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.