Skip to content

Commit

Permalink
suppress pyright false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
phelps-sg committed Nov 7, 2023
1 parent 656a219 commit 8e145b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openai_pygenerator/openai_pygenerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ def generate_completions(
request_timeout=request_timeout,
)
logger.debug("response = %s", result)
for choice in result.choices:
for choice in result.choices: # type: ignore
yield choice.message
except (
openai.error.Timeout,
openai.error.Timeout, # type: ignore
urllib3.exceptions.TimeoutError,
RateLimitError,
APIConnectionError,
Expand Down

0 comments on commit 8e145b6

Please sign in to comment.