(fun)
| 280 | |
| 281 | |
| 282 | def _preload_wrapper_depth(fun): |
| 283 | depth = 0 |
| 284 | seen = set() |
| 285 | while fun is not None and id(fun) not in seen: |
| 286 | seen.add(id(fun)) |
| 287 | if getattr(fun, "_handles_preload_options", False): |
| 288 | depth += 1 |
| 289 | fun = getattr(fun, "__wrapped__", None) |
| 290 | return depth |
| 291 | |
| 292 | |
| 293 | def test_var_keyword_callback_keeps_preload_options_it_can_accept(): |
no test coverage detected