Skip to content

docs: Fix linkcode_resolve#652

Merged
ValerianRey merged 2 commits intomainfrom
fix-linkcode-resolve
Apr 16, 2026
Merged

docs: Fix linkcode_resolve#652
ValerianRey merged 2 commits intomainfrom
fix-linkcode-resolve

Conversation

@ValerianRey
Copy link
Copy Markdown
Contributor

When tinkering in another PR, I realized that linkcode_resolve doesn't work when a field is type-hinted at the class level, e.g.

class MyClass:
    my_field: MyType

    def __init__(self, value: MyType) -> None:
        self.my_field = value

This PR fixes this.

@ValerianRey ValerianRey added the cc: docs Conventional commit type for changes to the documentation. label Apr 16, 2026
@ValerianRey ValerianRey requested a review from a team as a code owner April 16, 2026 15:38
@ValerianRey ValerianRey added the cc: docs Conventional commit type for changes to the documentation. label Apr 16, 2026
@github-actions github-actions bot changed the title Fix linkcode_resolve docs: Fix linkcode_resolve Apr 16, 2026
@github-actions github-actions bot changed the title Fix linkcode_resolve docs: Fix linkcode_resolve Apr 16, 2026
@ValerianRey ValerianRey enabled auto-merge (squash) April 16, 2026 15:40
@ValerianRey ValerianRey merged commit 20cde02 into main Apr 16, 2026
14 of 15 checks passed
@ValerianRey ValerianRey deleted the fix-linkcode-resolve branch April 16, 2026 15:43
@ValerianRey ValerianRey mentioned this pull request Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cc: docs Conventional commit type for changes to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant