(
arg_vars, # type: Optional[Dict[str,Any]]
*options # type: OptionsBase
)
| 66 | |
| 67 | |
| 68 | def _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 | |
| 84 | def get_valid_args( |
no test coverage detected