Skip to content

Commit

Permalink
Merge branch 'main' into bump-meilisearch-v1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
curquiza committed May 6, 2024
2 parents 6f97358 + fe9e30e commit c7f7704
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 84 deletions.
2 changes: 2 additions & 0 deletions .github/release-draft-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ replacers:
replace: ''
- search: '/(?:and )?@bors(?:\[bot\])?,?/g'
replace: ''
- search: '/(?:and )?@meili-bors(?:\[bot\])?,?/g'
replace: ''
- search: '/(?:and )?@meili-bot,?/g'
replace: ''
- search: '/(?:and )?@meili-bot(?:\[bot\])?,?/g'
Expand Down
165 changes: 83 additions & 82 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions meilisearch/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import json
from functools import wraps
from typing import TYPE_CHECKING, Any, Callable
from typing import TYPE_CHECKING, Any, Callable, TypeVar

from requests import Response

Expand All @@ -11,6 +11,8 @@
from meilisearch.index import Index
from meilisearch.task import TaskHandler

T = TypeVar("T")


class MeilisearchError(Exception): # pragma: no cover
"""Generic class for Meilisearch error handling"""
Expand Down Expand Up @@ -63,7 +65,7 @@ def __str__(self) -> str: # pragma: no cover
return f"MeilisearchTimeoutError, {self.message}"


def version_error_hint_message(func: Callable) -> Any:
def version_error_hint_message(func: Callable[..., T]) -> Callable[..., T]:
@wraps(func)
def wrapper(*args: Any, **kwargs: Any) -> Any:
try:
Expand Down

0 comments on commit c7f7704

Please sign in to comment.