Skip to content

Commit

Permalink
fix: added type ignore for the pyright stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanleomk committed Dec 25, 2024
1 parent 01e9715 commit bf9c1d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions instructor/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def __init__(
self.provider = provider
self.hooks = hooks or Hooks()

async def create(
async def create( # type: ignore[override]
self,
response_model: type[T] | None,
messages: list[ChatCompletionMessageParam],
Expand All @@ -395,7 +395,7 @@ async def create(
**kwargs,
)

async def create_partial(
async def create_partial( # type: ignore[override]
self,
response_model: type[T],
messages: list[ChatCompletionMessageParam],
Expand All @@ -419,7 +419,7 @@ async def create_partial(
):
yield item

async def create_iterable(
async def create_iterable( # type: ignore[override]
self,
messages: list[ChatCompletionMessageParam],
response_model: type[T],
Expand All @@ -443,7 +443,7 @@ async def create_iterable(
):
yield item

async def create_with_completion(
async def create_with_completion( # type: ignore[override]
self,
messages: list[ChatCompletionMessageParam],
response_model: type[T],
Expand Down

0 comments on commit bf9c1d2

Please sign in to comment.