Skip to content

Commit f96d492

Browse files
Add TODO comment for Stainless generator override issue
Document that the type ignore comment in _typing.py will be overwritten by Stainless generator. This needs to be addressed either by updating the Stainless config or moving the utility to lib/
1 parent 2fdcc1c commit f96d492

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/agentex/_utils/_typing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def is_typevar(typ: type) -> bool:
5353

5454
_TYPE_ALIAS_TYPES: tuple[type[typing_extensions.TypeAliasType], ...] = (typing_extensions.TypeAliasType,)
5555
if sys.version_info >= (3, 12):
56+
# NOTE: This type ignore will be overwritten by Stainless generator.
57+
# TODO: Update Stainless config to include this type ignore or move to lib/
5658
_TYPE_ALIAS_TYPES = (*_TYPE_ALIAS_TYPES, typing.TypeAliasType) # type: ignore[assignment]
5759

5860

0 commit comments

Comments
 (0)