MAINT: Use equality instead of identity check with literal
MAINT: Use equality instead of identity check with literal

Resolves #14123
pizzathief/numpy,anntzer/numpy,pbrod/numpy,numpy/numpy,jakirkham/numpy,pdebuyl/numpy,grlee77/numpy,grlee77/numpy,madphysicist/numpy,rgommers/numpy,jorisvandenbossche/numpy,mhvk/numpy,endolith/numpy,jakirkham/numpy,MSeifert04/numpy,grlee77/numpy,jorisvandenbossche/numpy,pbrod/numpy,charris/numpy,grlee77/numpy,MSeifert04/numpy,jorisvandenbossche/numpy,simongibbons/numpy,madphysicist/numpy,abalkin/numpy,rgommers/numpy,madphysicist/numpy,abalkin/numpy,jakirkham/numpy,WarrenWeckesser/numpy,mhvk/numpy,WarrenWeckesser/numpy,jakirkham/numpy,WarrenWeckesser/numpy,mattip/numpy,seberg/numpy,ahaldane/numpy,simongibbons/numpy,pbrod/numpy,endolith/numpy,charris/numpy,numpy/numpy,WarrenWeckesser/numpy,pdebuyl/numpy,charris/numpy,ahaldane/numpy,pbrod/numpy,endolith/numpy,rgommers/numpy,pizzathief/numpy,seberg/numpy,simongibbons/numpy,mhvk/numpy,mattip/numpy,charris/numpy,ahaldane/numpy,MSeifert04/numpy,pdebuyl/numpy,mattip/numpy,pbrod/numpy,endolith/numpy,pdebuyl/numpy,seberg/numpy,mhvk/numpy,numpy/numpy,pizzathief/numpy,seberg/numpy,mhvk/numpy,MSeifert04/numpy,numpy/numpy,anntzer/numpy,ahaldane/numpy,jakirkham/numpy,mattip/numpy,anntzer/numpy,simongibbons/numpy,abalkin/numpy,madphysicist/numpy,anntzer/numpy,pizzathief/numpy,pizzathief/numpy,jorisvandenbossche/numpy,grlee77/numpy,WarrenWeckesser/numpy,madphysicist/numpy,jorisvandenbossche/numpy,MSeifert04/numpy,simongibbons/numpy,rgommers/numpy,ahaldane/numpy