(self, state: Dict[str, Any])
| 339 | } |
| 340 | |
| 341 | def __setstate__(self, state: Dict[str, Any]) -> None: |
| 342 | if state["_translated_indexes"]: |
| 343 | _translated_indexes = state["_translated_indexes"] |
| 344 | _tuplefilter = tuplegetter(*_translated_indexes) |
| 345 | else: |
| 346 | _translated_indexes = _tuplefilter = None |
| 347 | self.__init__( # type: ignore |
| 348 | state["_keys"], |
| 349 | _translated_indexes=_translated_indexes, |
| 350 | _tuplefilter=_tuplefilter, |
| 351 | _ambiguous_keys=state.get("_ambiguous_keys"), |
| 352 | ) |
| 353 | |
| 354 | def _index_for_key(self, key: Any, raiseerr: bool = True) -> int: |
| 355 | if isinstance(key, int): |
nothing calls this directly
no test coverage detected