Update inheritance_diagram.py

removes sphinx xfileref_role deprecation errors