You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From #96 the issues we have seem to stem from (236713a) and (f5d4e42) after which we get a lot of false negatives on:
ConstantExpression
LambdaExpression
DuckDBPyType
I think the fixes I have for ConstantExpression + LambdaExpression would be pretty minor.
There's 1 or 2 examples for ConstantExpression in the test suite already 😉
Show ConstantExpression
DuckDBPyType might be a little more involved, since it's an issue with children.
Also the way I've worked around it in narwhalsprobably wouldn't be the same thing I'd write in the stubs
Fixed in #323. The children property was typed as list[tuple[str, object]] which gave callers no useful type information. Changed it to list[tuple[str, DuckDBPyType | int | list[str]]] to reflect what the C++ implementation actually returns (DuckDBPyType for nested types, int for DECIMAL precision/scale and ARRAY size, and list[str] for ENUM values).
Note: the ConstantExpression and LambdaExpression issues from the original report were already resolved in a previous release when their parameter types were changed to Any.
Activity
chore(typing): Mark all the other issues
evertlammerts commentedon Feb 17, 2026
Fixed in #323. The children property was typed as
list[tuple[str, object]]which gave callers no useful type information. Changed it tolist[tuple[str, DuckDBPyType | int | list[str]]]to reflect what the C++ implementation actually returns (DuckDBPyTypefor nested types,intforDECIMALprecision/scale andARRAYsize, andlist[str]forENUMvalues).Note: the ConstantExpression and LambdaExpression issues from the original report were already resolved in a previous release when their parameter types were changed to
Any.Fix multiple stub issues (#323)