Skip to content

Fix Python metaclass hook references - #2619

Merged
Widthdom merged 2 commits into
mainfrom
fix-issue2058
May 24, 2026
Merged

Fix Python metaclass hook references#2619
Widthdom merged 2 commits into
mainfrom
fix-issue2058

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Summary

  • Emit Python base-class references from mixed class Derived(Base, Mixin, metaclass=Meta) headers without treating keyword arguments as base types.
  • Suppress phantom Python super call rows while preserving the __init_subclass__ hook call edge from super().__init_subclass__().
  • Add regression coverage for mixed metaclass headers and super().__init_subclass__() calls.

Validation

  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter "FullyQualifiedName~ReferenceExtractorTests" -p:UseSharedCompilation=false
  • dotnet run --project tools/CodeIndex.Changelog -- check
  • dotnet build CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • dotnet test CodeIndex.sln -c Release -p:UseSharedCompilation=false
  • Adversarial review: No blocking/actionable issues found.

Documentation and Changelog

  • Added bilingual changelog fragment: changelog.d/unreleased/2058.fixed.md
  • No README or guide updates required; this is extractor behavior covered by tests and changelog.

Follow-up Candidates

  • None.

Fixes #2058

@Widthdom
Widthdom marked this pull request as ready for review May 24, 2026 10:58
@Widthdom
Widthdom merged commit 007bd29 into main May 24, 2026
10 checks passed
@Widthdom
Widthdom deleted the fix-issue2058 branch May 24, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python metaclass and __init_subclass__ references not emitted from class declarations and dunder calls

1 participant