Skip to content

Commit 48d8156

Browse files
committed
fix: satisfy core pyright checks
1 parent 7108dc7 commit 48d8156

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎python/packages/core/agent_framework/_workflows/_executor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from ._runner_context import MessageType, RunnerContext, WorkflowMessage
2222
from ._state import State
2323
from ._typing_utils import (
24-
_resolve_function_annotations,
24+
_resolve_function_annotations, # pyright: ignore[reportPrivateUsage]
2525
contains_typevar,
2626
is_instance_of,
2727
normalize_type_to_list,

‎python/packages/core/agent_framework/_workflows/_function_executor.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
from ._executor import Executor
2626
from ._typing_utils import (
27-
_resolve_function_annotations,
27+
_resolve_function_annotations, # pyright: ignore[reportPrivateUsage]
2828
contains_typevar,
2929
normalize_type_to_list,
3030
resolve_type_annotation,

‎python/packages/core/agent_framework/_workflows/_request_info_mixin.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from typing import TYPE_CHECKING, Any, TypeVar, cast
1313

1414
from ._typing_utils import (
15-
_resolve_function_annotations,
15+
_resolve_function_annotations, # pyright: ignore[reportPrivateUsage]
1616
contains_typevar,
1717
is_instance_of,
1818
is_type_compatible,

‎python/packages/core/agent_framework/_workflows/_typing_utils.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ def contains_typevar(annotation: Any) -> bool:
5555
return any(contains_typevar(arg) for arg in get_args(annotation))
5656

5757

58-
def _resolve_function_annotations(func: Callable[..., Any], params: Sequence[Any]) -> dict[str, Any]:
58+
def _resolve_function_annotations( # pyright: ignore[reportUnusedFunction]
59+
func: Callable[..., Any], params: Sequence[Any]
60+
) -> dict[str, Any]:
5961
"""Resolve function annotations and fall back to raw parameter annotations on failure.
6062
6163
``typing.get_type_hints`` resolves postponed annotations, but a single unresolved

0 commit comments

Comments
 (0)