Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
test(graph): exempt the fourth qualifier split the guard does not govern (#1647)
Raghav Chamadiya8143c86d9526
diff --git a/tests/unit/test_no_bare_type_name_copies.py b/tests/unit/test_no_bare_type_name_copies.pyindex 79e9be449..836ee5f00 100644--- a/tests/unit/test_no_bare_type_name_copies.py+++ b/tests/unit/test_no_bare_type_name_copies.py@@ -71,9 +71,10 @@ _KNOWN: dict[str, int] = {# Splits our own `path::Class::method` symbol IDs, which we mint. The# separator is ours rather than the language's, so the shared helper would# be answering about a type where these ask about an ID. `models.py` holds- # the one both resolvers used to duplicate. `call_resolver.py`'s third is- # the tail of an import's module path — a module name, not a type.- _PREFIX + "call_resolver.py": 3,+ # the one both resolvers used to duplicate. Three of `call_resolver.py`'s+ # four are symbol IDs; the fourth takes the tail of an import's module+ # path, which is a module name, not a type.+ _PREFIX + "call_resolver.py": 4,_PREFIX + "models.py": 1,# Reads the head to decide whether taking a bare name is safe at all: a# qualifier that is a type rather than a package must not be discarded.