MAINT: stats: Work around Cython bug. (#16719)
MAINT: stats: Work around Cython bug. (#16719)

Because of a bug in Cython, the inner function weigh() (a closure
in _weightedrankedtau()) cannot refer to the memoryview arguments
of _weightedrankedtau().  The work-around here is to assign the
arguments to local variables.
endolith/scipy,WarrenWeckesser/scipy,andyfaff/scipy,rgommers/scipy,andyfaff/scipy,ilayn/scipy,rgommers/scipy,mdhaber/scipy,scipy/scipy,endolith/scipy,ilayn/scipy,rgommers/scipy,mdhaber/scipy,andyfaff/scipy,endolith/scipy,mdhaber/scipy,anntzer/scipy,WarrenWeckesser/scipy,perimosocordiae/scipy,Stefan-Endres/scipy,endolith/scipy,anntzer/scipy,endolith/scipy,WarrenWeckesser/scipy,scipy/scipy,anntzer/scipy,Stefan-Endres/scipy,mdhaber/scipy,WarrenWeckesser/scipy,ilayn/scipy,rgommers/scipy,Stefan-Endres/scipy,mdhaber/scipy,perimosocordiae/scipy,andyfaff/scipy,scipy/scipy,scipy/scipy,anntzer/scipy,anntzer/scipy,Stefan-Endres/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,Stefan-Endres/scipy,WarrenWeckesser/scipy,ilayn/scipy,andyfaff/scipy,mdhaber/scipy,perimosocordiae/scipy,andyfaff/scipy,Stefan-Endres/scipy,anntzer/scipy,scipy/scipy,endolith/scipy,scipy/scipy,ilayn/scipy,rgommers/scipy,perimosocordiae/scipy,perimosocordiae/scipy,ilayn/scipy