Skip to content

Commit 345bc95

Browse files
committed
fix mypy
1 parent 29aaadd commit 345bc95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/typed_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ def my_method(self) -> bool:
292292
assert_type(text_output_with_ctx, TextOutput[re.Pattern[str], int])
293293
Agent('test', output_type=text_output_with_ctx, deps_type=int)
294294
Agent('test', output_type=text_output_with_ctx, deps_type=bool) # bool is subclass of int, works with contravariant
295-
Agent('test', output_type=text_output_with_ctx, deps_type=str) # pyright: ignore[reportArgumentType,reportCallIssue] # type: ignore[arg-type]
296-
Agent('test', output_type=text_output_with_ctx) # pyright: ignore[reportArgumentType,reportCallIssue] # type: ignore[arg-type]
295+
Agent('test', output_type=text_output_with_ctx, deps_type=str) # type: ignore[arg-type] # pyright: ignore[reportArgumentType,reportCallIssue]
296+
Agent('test', output_type=text_output_with_ctx) # pyright: ignore[reportArgumentType,reportCallIssue]
297297

298298
# prepare example from docs:
299299

0 commit comments

Comments
 (0)