Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansingman committed Jan 19, 2024
1 parent f1233bb commit 17fd315
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cleanlab_studio/internal/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,10 @@ def get_deployed_model_info(api_key: str, model_id: str) -> Dict[str, str]:
return cast(Dict[str, str], res.json())


def tlm_retry(func: Callable) -> Callable:
def tlm_retry(func: Callable[..., Any]) -> Callable[..., Any]:
"""Implements TLM retry decorator, with special handling for rate limit retries."""

async def wrapper(*args, **kwargs) -> Any:
async def wrapper(*args: Any, **kwargs: Any) -> Any:
# total number of tries = number of retries + original try
retries = kwargs.pop("retries", 0)
num_tries = retries + 1
Expand Down
2 changes: 1 addition & 1 deletion cleanlab_studio/studio/studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def TLM(
self,
*,
quality_preset: trustworthy_language_model.QualityPreset = "medium",
**kwargs,
**kwargs: Any,
) -> trustworthy_language_model.TLM:
"""Gets Trustworthy Language Model (TLM) object to prompt.
Expand Down

0 comments on commit 17fd315

Please sign in to comment.