When you create models using G and you use n and it's greater than like in the example below the type information is incorrect. I would expect to get back list[Req] not Req. I've attached an image below to show this in vscode.
from my_djangoapp.models import Req
req = ddf.G(Req, 10)
I'd be glad to put up a PR to fix this as it's a pretty easy fix.
A potential solution would be to just change the type definition although there might be a way to get better ergonomics than that
When you create models using
G
and you usen
and it's greater than like in the example below the type information is incorrect. I would expect to get backlist[Req]
notReq
. I've attached an image below to show this in vscode.I'd be glad to put up a PR to fix this as it's a pretty easy fix.
A potential solution would be to just change the type definition although there might be a way to get better ergonomics than that