Skip to content

Fixed type hint/docstring on DocMetadataClient.metadata_clients#1086

Merged
jamesbraza merged 1 commit intomainfrom
fixing-md-client-typing
Sep 13, 2025
Merged

Fixed type hint/docstring on DocMetadataClient.metadata_clients#1086
jamesbraza merged 1 commit intomainfrom
fixing-md-client-typing

Conversation

@jamesbraza
Copy link
Copy Markdown
Collaborator

I realized we were only allowing classes, when in fact we support instances too.

@jamesbraza jamesbraza self-assigned this Sep 13, 2025
Copilot AI review requested due to automatic review settings September 13, 2025 21:50
@jamesbraza jamesbraza added the bug Something isn't working label Sep 13, 2025
@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Sep 13, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the type hints and documentation for the DocMetadataClient.metadata_clients parameter to accurately reflect that it supports both class types and instances of MetadataProvider and MetadataPostProcessor.

  • Introduces a new MetadataClientQuerier type alias that includes both instances and class types
  • Updates the metadata_clients parameter type annotation to use this new alias
  • Improves the docstring to clarify that both instances and classes are supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@dosubot dosubot bot added the documentation Improvements or additions to documentation label Sep 13, 2025
@dosubot
Copy link
Copy Markdown

dosubot bot commented Sep 13, 2025

Related Documentation

Checked 1 published document(s). No updates required.

How did I do? Any feedback?  Join Discord

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 13, 2025
@jamesbraza jamesbraza merged commit 7573328 into main Sep 13, 2025
6 checks passed
@jamesbraza jamesbraza deleted the fixing-md-client-typing branch September 13, 2025 23:49
@dosubot
Copy link
Copy Markdown

dosubot bot commented Sep 13, 2025

Documentation Updates

Checked 1 published document(s). No updates required.

How did I do? Any feedback?  Join Discord

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

Labels

bug Something isn't working documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants