feat: adding cursory Python 3.14 support (#6298)

* catching error thrown by asyncio
* using 2nd check for annotations given Pydantic 2.12 changes
* skipping tests for remote graph bc langgraph-api is dependent on
`jsonschema-rs`
* skipping tests w/ pydantic v1 models

```bash
hint: This usually indicates a problem with the package or the build environment.
  help: `jsonschema-rs` (v0.29.1) was included because `langgraph:dev` (v1.0.0rc1) depends on `langgraph-cli[inmem]` which
        depends on `langgraph-api` (v0.4.29) which depends on `jsonschema-rs`
```

not yet testing for free threaded python, that'll be much more involved!

ended up separating lint / testing deps during this process bc I was
getting a ton of not required deps while testing that were complicating
things :/
This commit is contained in:
Sydney Runkle
2025-10-17 08:26:52 -04:00
committed by GitHub
parent cf39fa5a91
commit 2c3e380a35
29 changed files with 1827 additions and 917 deletions
+8 -1
View File
@@ -1,6 +1,7 @@
import dataclasses
import inspect
import json
import sys
from functools import partial
from typing import (
Annotated,
@@ -678,7 +679,13 @@ T = TypeVar("T")
"schema_",
[
_InjectStateSchema,
_InjectedStatePydanticSchema,
pytest.param(
_InjectedStatePydanticSchema,
marks=pytest.mark.skipif(
sys.version_info >= (3, 14),
reason="Pydantic v1 not supported in Python 3.14+",
),
),
_InjectedStatePydanticV2Schema,
_InjectedStateDataclassSchema,
],