With the release of v0.4.0 of ruff, I noticed that some of ruff's dependencies were not updated to their latest versions. The ruff-pre-commit package released v0.4.0 at the same time ruff was updated, but ruff still referenced v0.3.7 of the package, not the newly updated version.
In a similar light, I noticed that the version of the dill package being used was not the latest version that now fully supports Python 3.12.