MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / _get_temp_opts

Function _get_temp_opts

couchbase/logic/options.py:68–81  ·  view source on GitHub ↗
(
    arg_vars,  # type: Optional[Dict[str,Any]]
    *options  # type: OptionsBase
)

Source from the content-addressed store, hash-verified

66
67
68def _get_temp_opts(
69 arg_vars, # type: Optional[Dict[str,Any]]
70 *options # type: OptionsBase
71) -> Dict[str, Any]:
72 arg_vars = copy.copy(arg_vars) if arg_vars else {}
73 temp_options = (
74 copy.copy(
75 options[0]) if (
76 options and options[0]) else dict())
77 kwargs = arg_vars.pop("kwargs", {})
78 temp_options.update(kwargs)
79 temp_options.update(arg_vars)
80
81 return temp_options
82
83
84def get_valid_args(

Callers 1

get_valid_multi_argsFunction · 0.85

Calls 2

updateMethod · 0.80
popMethod · 0.45

Tested by

no test coverage detected