Skip to content

BugFix: None is not assignable to ReadonlyContext #863

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

swapxs
Copy link
Contributor

@swapxs swapxs commented May 22, 2025

No description provided.

@hangfei
Copy link
Collaborator

hangfei commented May 30, 2025

I believe we should do Optioanl[...]. @seanzhou1023 please help confirm.

@seanzhou1023
Copy link
Collaborator

Yes, agree.

@hangfei hangfei requested a review from seanzhou1023 July 18, 2025 21:44
@@ -361,7 +361,7 @@ async def canonical_global_instruction(
return global_instruction, True

async def canonical_tools(
self, ctx: ReadonlyContext = None
self, ctx: ReadonlyContext
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing default value is not backward compatible.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should mark it as Optional[ReadonlyContext]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants