Type inherited from reflected type cannot be directly queried
Open
bug
ORM
- Dominant language
- Python
- Stars
- 415
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Using the orm_qb schema, the following code:
```py
from models.orm_qb import default, std
class Inh_A_WithComputed(default.Inh_A):
n: std.int64
result = self.client.query(Inh_A_WithComputed)
```
Fails typecheck with:
```
error: Need type annotation for "result" (hint: "result: list[] = ...") [var-annotated]
error: Argument 1 to "query" of "ReadOnlyExecutor" has incompatible type "type[Inh_A_WithComputed]"; expected "QueryableObject[Never] | type[QueryableType[Never]]" [arg-type]
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.