## Step.accepts_dtypes()


Dtypes this step is valid to apply to.


Usage

``` python
Step.accepts_dtypes()
```


Return a set of narwhals dtype classes ([NUMERIC_DTYPES](NUMERIC_DTYPES.md#mlfeatures.NUMERIC_DTYPES) is ready-made for numeric-only steps), or [ANY_DTYPE](ANY_DTYPE.md#mlfeatures.ANY_DTYPE) to skip dtype validation entirely. The recipe checks the resolved selection's dtypes against this set before [fit()](Step.fit.md#mlfeatures.Step.fit) runs and raises a `TypeError` naming the step, the offending column(s), and their dtypes, so a step never sees a column it declared itself invalid for. The check does not run again at [transform()](Step.transform.md#mlfeatures.Step.transform) time: the schema snapshot already pins new data's dtypes to what was seen at fit.
