Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reported type of decorator #956

Merged
merged 1 commit into from
May 2, 2024
Merged

Fix reported type of decorator #956

merged 1 commit into from
May 2, 2024

Conversation

sanders41
Copy link
Collaborator

Pull Request

Related issue

Fixes #<issue_number>

Reported on Discord https://discord.com/channels/1006923006964154428/1006923007559729154/1235605897418506401

The Return type is getting swallowed by the version_error_hint_message decorator.

image

What does this PR do?

  • Uses a generic instead of Any for the decorator.

After the update:

image

PR checklist

Please check if your PR fulfills the following requirements:

  • Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
  • Have you read the contributing guidelines?
  • Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!

@sanders41 sanders41 added the bug Something isn't working label May 2, 2024
@sanders41 sanders41 requested a review from curquiza May 2, 2024 15:31
Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

❤️

bors merge

meili-bors bot added a commit that referenced this pull request May 2, 2024
956: Fix reported type of decorator r=curquiza a=sanders41

# Pull Request

## Related issue
Fixes #<issue_number>

Reported on Discord https://discord.com/channels/1006923006964154428/1006923007559729154/1235605897418506401

The Return type is getting swallowed by the `version_error_hint_message` decorator.

![image](https://github.com/meilisearch/meilisearch-python/assets/25045024/1467c6b1-3d86-449a-ba6c-15b2a7c33777)

## What does this PR do?
- Uses a generic instead of `Any` for the decorator.

After the update:

![image](https://github.com/meilisearch/meilisearch-python/assets/25045024/3eb434a2-08ab-46fd-8bd1-24db11e8ce64)

## PR checklist
Please check if your PR fulfills the following requirements:
- [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [x] Have you read the contributing guidelines?
- [x] Have you made sure that the title is accurate and descriptive of the changes?

Thank you so much for contributing to Meilisearch!


Co-authored-by: Paul Sanders <paul@paulsanders.dev>
Copy link
Contributor

meili-bors bot commented May 2, 2024

This PR was included in a batch that successfully built, but then failed to merge into main. It will not be retried.

Additional information:

{"message":"Required status check \"Yaml linting check\" is in progress.","documentation_url":"https://docs.github.com/articles/about-protected-branches"}

@curquiza
Copy link
Member

curquiza commented May 2, 2024

bors merge

Copy link
Contributor

meili-bors bot commented May 2, 2024

@meili-bors meili-bors bot merged commit 62fb65a into main May 2, 2024
11 checks passed
@meili-bors meili-bors bot deleted the decorator branch May 2, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants