-
-
Notifications
You must be signed in to change notification settings - Fork 516
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug report
apologies I haven't been able to narrow this down yet -- but it appears only after upgrading:
src/sentry/models/group.py:87: error: Group has no field named 'short_id' [misc]
however this model does have this field:
- https://github.com/getsentry/sentry/blob/0fb99c104713410075b9be24d4882f73564cd4aa/src/sentry/models/group.py#L87
- https://github.com/getsentry/sentry/blob/0fb99c104713410075b9be24d4882f73564cd4aa/src/sentry/models/group.py#L634
debugging it looks like the symbol does exist but may need a deferral pass?
around hereish:
| if not isinstance(field_type, Instance): |
((Pdb)) info.get(field_name)
<mypy.nodes.SymbolTableNode object at 0x14a1e0310>
((Pdb)) info.get(field_name).node
<Var 'sentry.models.group.Group.short_id' at 0x14a1cfe20>
((Pdb)) info.get(field_name).node.type # None
((Pdb)) info.get(field_name).node.is_ready
False
(Var being a not-yet-resolved alias I believe?)
System information
- OS:
pythonversion: 3.13.1djangoversion: modernmypyversion: 1.17.1django-stubsversion: 5.2.5 (forked)django-stubs-extversion: 5.2.5
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working