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
{{ message }}
Repository navigation
bug(stubgen): instance variables defined in __init__ method are missing from generated stubs #3208
Classes in generated stubs are missing attributes if those attributes are not explicitly annotated at the class-level. The classic canonical, non-dataclass way of defining attributes in __init__(self, ...) is seemingly incompatible with stubgen.
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
Activity
fix(stubgen): emit instance attrs assigned in __init__
fix(stubgen): emit instance attrs assigned in __init__
fix(stubgen): emit instance attrs assigned in __init__
fix(stubgen): emit instance attrs assigned in __init__
fix(stubgen): emit instance attrs assigned in __init__
github-actions commentedon May 9, 2026
This issue has someone assigned, but has not had recent activity for more than 2 weeks.
If you are still working on this issue, please add a comment so everyone knows. Otherwise, please unassign yourself and allow someone else to take over.
Thank you for your contributions!
fix(stubgen): emit instance attrs assigned in `__init__` (#3209)
stroxler commentedon May 15, 2026
If I'm reading the history correctly, this was fixed in #3209 (thanks for the PR!)