Ref: https://github.com/PyO3/pyo3/discussions/3160
Ref: PyO3/pyo3#3160