It should be noted that as of Python 3.13.0 the partial version no longer works. This is due to a breaking change, as mentioned in this issue.
partial
However, the wrapper class approach does work in 3.13.