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
The return type of a query is currently defined as Any, this prevents type-checking, and
also limits auto-completion in IDEs.
Motivation
By being able to specify the return type for a query for type checkers, we can enable static analysis on code using the query method, this is currently not possible without manually casting the return values on each use.
Possible implementation
Some kind of generic type.
classFooResult:
bar: strclassFooQuery(Query[FooResult]):
baz: str
this would have to be optional in able to continue supporting pure domain packages with no dependency on banshee.
Activity
[-]feat: typed query return types[/-][+]Query Return Types[/+][-]Query Return Types[/-][+]Query return types[/+]