fix type issue
fix type issue

NvanAdrichem/networkx,jfinkels/networkx,SanketDG/networkx,andnovar/networkx,Sixshaman/networkx,cmtm/networkx,michaelpacer/networkx,goulu/networkx,JamesClough/networkx,OrkoHunter/networkx,tmilicic/networkx