-
-
Notifications
You must be signed in to change notification settings - Fork 516
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Refs #2797
Quoting @asottile-sentry from #2797 (comment)
I believe this might not be correct for the .annotate(...) case
here's an example from sentry:
src/sentry/api/serializers/models/rule.py:207: error: Attribute "date_added" already defined on "sentry.models.rulefirehistory.RuleFireHistory" [no-redef]
(there's a few other examples in sentry as well where particular aggregations are used to produce a value with the same name as an existing field when making a grouped query)
Quoting myself from #2797 (comment)
Hm, interesting, I haven't consider this use-case. So, basically, if we annotate an some existing IntegerField field with int value, there's no type error here. So, basically, we should instead detect type mismatches in annotated fields and report them.
martinlehoux
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working