(
caches: Union[DynamicCache, Sequence[DynamicCache], None]
)
| 291 | |
| 292 | |
| 293 | def _ensure_cache_sequence( |
| 294 | caches: Union[DynamicCache, Sequence[DynamicCache], None] |
| 295 | ) -> List[DynamicCache]: |
| 296 | if caches is None: |
| 297 | return [] |
| 298 | if isinstance(caches, (list, tuple)): |
| 299 | return [cache for cache in caches if cache is not None] |
| 300 | return [caches] |
| 301 | |
| 302 | |
| 303 | def _concat_inplace(cache: DynamicCache, others: Sequence[DynamicCache]) -> DynamicCache: |
no outgoing calls
no test coverage detected