Skip to content

High-confidence import_map collides on common method names #2127

Description

@avigdorsky

Severity: medium-high — survives a confidence >= 0.9 filter.

from unittest.mock import patch is bound to a REST view's HTTP handler
PkgConfigView.patch with strategy=import_map, confidence=0.95. This is 4 of the
5 misses in the filtered sample — i.e. the dominant residual error once consumers
do filter correctly.

Ask: when a name is imported in the caller's file, prefer that import's target
over a same-named method elsewhere in the graph.


Observed on v0.10.8 (build 996bad5fe6fb), macOS arm64, Python monorepo (~36k nodes / ~179k edges). Happy to provide a minimal reproduction repo if useful.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingparsing/qualityGraph extraction bugs, false positives, missing edgespriority/highNeeds near-term maintainer attention; high-impact bug, regression, safety issue, or release blocker.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions