Repository navigation
Commit 3b725b3
authored
Python: fix(core): define EdgeGroup's builtins.type alias at module scope (#9614)
The `from builtins import type as builtin_type` import lived inside the EdgeGroup
class body, making `EdgeGroup.builtin_type` a class member aliasing builtins.type.
The Public API Compatibility workflow (griffe) raises
`AliasResolutionError: Could not resolve alias agent_framework._workflows._edge.EdgeGroup.builtin_type
pointing at builtins.type` while loading the API, which fails the check on every PR.
Move the alias to module scope (matching _request_info_mixin.py, which already does
this) so the spurious class member is gone while the annotations (builtin_type[...])
stay resolvable. No runtime or type-checker behavior change: the module uses
`from __future__ import annotations`, and builtin_type is referenced only in
annotations. Verified griffe loads EdgeGroup cleanly; pyright and ruff pass.1 parent a8e284c commit 3b725b3
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
312 | 313 | | |
313 | 314 | | |
314 | 315 | | |
315 | | - | |
316 | | - | |
317 | 316 | | |
318 | 317 | | |
319 | 318 | | |
| |||
0 commit comments