Skip to content

Commit 6f80206

Browse files
CopilotCopilot
andcommitted
Fix pyright reportMissingImports for orjson in sample files (#4963)
Add type: ignore comments for optional orjson import in file_history_provider samples to suppress pyright errors in samples-check. Co-authored-by: Copilot <[email protected]>
1 parent eacd7d1 commit 6f80206

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎python/samples/02-agents/conversations/file_history_provider.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from pydantic import Field
2222

2323
try:
24-
import orjson
24+
import orjson # type: ignore[reportMissingImports]
2525
except ImportError:
2626
orjson = None
2727

‎python/samples/02-agents/conversations/file_history_provider_conversation_persistence.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from pydantic import Field
2323

2424
try:
25-
import orjson
25+
import orjson # type: ignore[reportMissingImports]
2626
except ImportError:
2727
orjson = None
2828

0 commit comments

Comments
 (0)