Skip to content

Commit 4695a55

Browse files
authored
fix(pyright): Fix overlapping overloads (#1852)
1 parent c08d91a commit 4695a55

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

shiny/ui/_chat.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ async def _raise_exception(
340340
def messages(
341341
self,
342342
*,
343-
format: Literal["anthropic"] = "anthropic",
343+
format: Literal["anthropic"],
344344
token_limits: tuple[int, int] | None = None,
345345
transform_user: Literal["all", "last", "none"] = "all",
346346
transform_assistant: bool = False,
@@ -350,7 +350,7 @@ def messages(
350350
def messages(
351351
self,
352352
*,
353-
format: Literal["google"] = "google",
353+
format: Literal["google"],
354354
token_limits: tuple[int, int] | None = None,
355355
transform_user: Literal["all", "last", "none"] = "all",
356356
transform_assistant: bool = False,
@@ -360,7 +360,7 @@ def messages(
360360
def messages(
361361
self,
362362
*,
363-
format: Literal["langchain"] = "langchain",
363+
format: Literal["langchain"],
364364
token_limits: tuple[int, int] | None = None,
365365
transform_user: Literal["all", "last", "none"] = "all",
366366
transform_assistant: bool = False,
@@ -370,7 +370,7 @@ def messages(
370370
def messages(
371371
self,
372372
*,
373-
format: Literal["openai"] = "openai",
373+
format: Literal["openai"],
374374
token_limits: tuple[int, int] | None = None,
375375
transform_user: Literal["all", "last", "none"] = "all",
376376
transform_assistant: bool = False,
@@ -380,7 +380,7 @@ def messages(
380380
def messages(
381381
self,
382382
*,
383-
format: Literal["ollama"] = "ollama",
383+
format: Literal["ollama"],
384384
token_limits: tuple[int, int] | None = None,
385385
transform_user: Literal["all", "last", "none"] = "all",
386386
transform_assistant: bool = False,

0 commit comments

Comments
 (0)