quri_parts.core.utils.deprecation module¶
- deprecated_kwarg(old_name, new_name)¶
Build a decorator that accepts
old_nameas a deprecated alias fornew_name.- Parameters:
old_name (str)
new_name (str)
- Return type:
Callable[[_F], _F]
- deprecated_shots_kwarg(func)¶
Accept the old
n_shotskeyword as a deprecated alias forshots.- Parameters:
func (_F)
- Return type:
_F
- deprecated_measurement_cnt_kwarg(func)¶
Accept the old
measurement_cntkeyword as a deprecated alias forshots.- Parameters:
func (_F)
- Return type:
_F