CoatiSoftware / SourcetrailPythonIndexer

Python Indexer for Sourcetrail based on jedi, parso and SourcetrailDB
GNU General Public License v3.0
90 stars 28 forks source link

Local method variable marked as "ambiguous" when it should be locally scoped #45

Closed madig closed 5 years ago

madig commented 5 years ago
  1. Index https://github.com/fonttools/fonttools/tree/master/Lib/fontTools (install in local venv with pip install -e .[all]
  2. Navigate to fontTools.varLib.merger.Merger.mergeTables:
    def mergeTables(self, font, master_ttfs, tableTags):

        for tag in tableTags:
            if tag not in font:
                continue
            self.mergeThings(
                font[tag], [m[tag] if tag in m else None for m in master_ttfs]
            )

Sourcetrail or an underlying library goes off and marks tag as ambiguous and points to other classes like AxisDescriptor etc., when the variable should clearly be locally scoped: asas Or am I missing some Python scoping nuance here?

egraether commented 5 years ago

Thanks for reporting @madig! This is a known issue and already open with #26. Closing due to duplicate