Ref: https://github.com/PyO3/pyo3/pull/3609#issuecomment-1869387997
Ref: PyO3/pyo3#3609 (comment)