Something similar was mentioned at https://github.com/scipy/scipy/issues/8325.