MAINT: refactoring in np.core.records (gh-15195)
MAINT: refactoring in np.core.records (gh-15195)

* remove parentheses in the if statements
* use tuples instead of lists in if conditions
* use tuples instead of chained OR conditions

Co-authored-by: Eric Wieser <da64e90baec5d084ce3d8e05f3b022ae6d118ff5@gmail.com>
Co-authored-by: Sebastian Berg <db043b2055cb3a47b2eb0b5aebf4e114a8c24a5a@sipsolutions.net>

abalkin/numpy,numpy/numpy,anntzer/numpy,pdebuyl/numpy,pdebuyl/numpy,WarrenWeckesser/numpy,jakirkham/numpy,mhvk/numpy,rgommers/numpy,WarrenWeckesser/numpy,mattip/numpy,charris/numpy,seberg/numpy,mattip/numpy,madphysicist/numpy,simongibbons/numpy,seberg/numpy,pbrod/numpy,endolith/numpy,endolith/numpy,simongibbons/numpy,simongibbons/numpy,WarrenWeckesser/numpy,rgommers/numpy,numpy/numpy,WarrenWeckesser/numpy,charris/numpy,charris/numpy,jakirkham/numpy,grlee77/numpy,mhvk/numpy,anntzer/numpy,madphysicist/numpy,endolith/numpy,charris/numpy,madphysicist/numpy,numpy/numpy,pbrod/numpy,jakirkham/numpy,mhvk/numpy,mhvk/numpy,grlee77/numpy,pbrod/numpy,abalkin/numpy,simongibbons/numpy,grlee77/numpy,WarrenWeckesser/numpy,pbrod/numpy,pbrod/numpy,rgommers/numpy,jakirkham/numpy,seberg/numpy,anntzer/numpy,pdebuyl/numpy,rgommers/numpy,simongibbons/numpy,endolith/numpy,mattip/numpy,grlee77/numpy,jakirkham/numpy,seberg/numpy,numpy/numpy,madphysicist/numpy,anntzer/numpy,abalkin/numpy,madphysicist/numpy,grlee77/numpy,mhvk/numpy,mattip/numpy,pdebuyl/numpy