(
state_keys: Sequence[str], schema: type[Any]
)
| 1716 | |
| 1717 | |
| 1718 | def _pick_mapper( |
| 1719 | state_keys: Sequence[str], schema: type[Any] |
| 1720 | ) -> Callable[[Any], Any] | None: |
| 1721 | if state_keys == ["__root__"]: |
| 1722 | return None |
| 1723 | if isclass(schema) and (issubclass(schema, BaseModel) or is_dataclass(schema)): |
| 1724 | return partial(_coerce_state, schema) |
| 1725 | return None |
| 1726 | |
| 1727 | |
| 1728 | _S = TypeVar("_S") |
no outgoing calls
no test coverage detected
searching dependent graphs…