I have a similar issue in matplotlib/scale.py using version 21.2.3
D:\Apps\fortify\Fortify_SCA_and_Apps_21.2.3\bin>sourceanalyzer -b nexus -python-version 3 -python-path d:\apps\python38_64;d:\apps\python38_64;d:\Apps\python38_64\Lib\site-packages;d:\nexus\dev20\python\package d:\nexus\dev20\python\**\*.py
[error]: Unexpected exception while parsing file d:/Apps/python38_64/Lib/site-packages/matplotlib/scale.py
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 1
at java.lang.String.checkBoundsBeginEnd(String.java:3319) ~[?:?]
at java.lang.String.substring(String.java:1874) ~[?:?]
The opinions expressed above are the personal opinions of the authors, not of OpenText. By using this site, you accept the Terms of Use. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.), Hewlett Packard Enterprise Company, or Micro Focus. As of January 31, 2023, the Material is now offered by OpenText, a separately owned and operated company. Any reference to the HP, Hewlett Packard Enterprise/HPE, and Micro Focus marks is historical in nature and the HP, Hewlett Packard Enterprise/HPE, and Micro Focus marks are the property of their respective owners.