Used to combine two sources of kwargs for the backend engine. Use of kwargs is deprecated, this function is solely for use in 1.3 and should be removed in 1.4/2.0. Also _base.ExcelWriter.__new__ ensures either engine_kwargs or kwargs must be None or empty respectively. Paramet
(engine_kwargs: dict[str, Any] | None, kwargs: dict)
| 302 | |
| 303 | |
| 304 | def combine_kwargs(engine_kwargs: dict[str, Any] | None, kwargs: dict) -> dict: |
| 305 | """ |
| 306 | Used to combine two sources of kwargs for the backend engine. |
| 307 | |
| 308 | Use of kwargs is deprecated, this function is solely for use in 1.3 and should |
| 309 | be removed in 1.4/2.0. Also _base.ExcelWriter.__new__ ensures either engine_kwargs |
| 310 | or kwargs must be None or empty respectively. |
| 311 | |
| 312 | Parameters |
| 313 | ---------- |
| 314 | engine_kwargs: dict |
| 315 | kwargs to be passed through to the engine. |
| 316 | kwargs: dict |
| 317 | kwargs to be psased through to the engine (deprecated) |
| 318 | |
| 319 | Returns |
| 320 | ------- |
| 321 | engine_kwargs combined with kwargs |
| 322 | """ |
| 323 | if engine_kwargs is None: |
| 324 | result = {} |
| 325 | else: |
| 326 | result = engine_kwargs.copy() |
| 327 | result.update(kwargs) |
| 328 | return result |