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
etc. and what I would suggest is adding checking for the validity of referenced expressions (I know it's a big ask, so I would 100% understand, if you say no to it)
MyModel.objects
.filter(exampel1__gt=5) # Error, exampel1 doesn't exist
.order_by("tsss") # Error, tsss does not existobj=MyModel.objects.create(
tss=1, # Error, tsss does not existexample1=1.0,
) # Error, example2 is missing
I haven't looked at the code that much, but if you estimate it's doable as "good first issue", please assign me
The text was updated successfully, but these errors were encountered:
DetachHead
added
the
plugin
feature specific to some third party module and therefore requires a plugin system
label
Jul 27, 2024
@JCWasmx86 that's for the suggestion, typed orm would be highly based imo. i can see two routes here, unfortunately both would be a very large amount of work:
create a new concept within the type system that can be used to represent these, and similar constructs. an example of a such a concept would be typing.dataclass_transform
the simple/easy route would be to special case this exact scenario within basedpyright, which we try to limit as much as possible.
special casing has many many downsides.
In Django you have models for representing table rows. (ORM), like e.g.
etc. and what I would suggest is adding checking for the validity of referenced expressions (I know it's a big ask, so I would 100% understand, if you say no to it)
I haven't looked at the code that much, but if you estimate it's doable as "good first issue", please assign me
The text was updated successfully, but these errors were encountered: