chore: drop Python 3.9 (and syntax) (#6289)

* `strict=False` is the default, pyupgrade to min version 3.10 adds this
to be explicit w/ behavior
This commit is contained in:
Sydney Runkle
2025-10-16 20:17:46 -04:00
committed by GitHub
parent 06f9142419
commit 2d3121a17c
113 changed files with 730 additions and 1489 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
from typing import (
Annotated,
Any,
Union,
)
import pytest
@@ -196,7 +195,7 @@ async def test_tool_node_tool_call_input():
async def test_tool_node_error_handling():
def handle_all(e: Union[ValueError, ToolException, ValidationError]):
def handle_all(e: ValueError | ToolException | ValidationError):
return TOOL_CALL_ERROR_TEMPLATE.format(error=repr(e))
# test catching all exceptions, via: