Skip to content

Commit c5e1321

Browse files
authored
fix: #2783 depend on griffelib directly for docstring parsing (#2791)
1 parent 7fea1a5 commit c5e1321

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ authors = [{ name = "OpenAI", email = "support@openai.com" }]
99
dependencies = [
1010
"openai>=2.26.0,<3",
1111
"pydantic>=2.12.2, <3",
12-
"griffe>=1.5.6, <2",
12+
"griffelib>=2, <3",
1313
"typing-extensions>=4.12.2, <5",
1414
"requests>=2.0, <3",
1515
"types-requests>=2.0, <3",

src/agents/function_schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
from dataclasses import dataclass
88
from typing import Annotated, Any, Callable, Literal, get_args, get_origin, get_type_hints
99

10-
from griffe import Docstring, DocstringSectionKind
10+
# griffelib exposes the `griffe` package at runtime but currently does not ship typing markers.
11+
from griffe import Docstring, DocstringSectionKind # type: ignore[import-untyped]
1112
from pydantic import BaseModel, Field, create_model
1213
from pydantic.fields import FieldInfo
1314

uv.lock

Lines changed: 13 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)