Calculate attributes that may be initialized by a super().__init__ call.
(op: Call)
| 292 | |
| 293 | |
| 294 | def attributes_maybe_initialized_by_init_call(op: Call) -> set[str]: |
| 295 | """Calculate attributes that may be initialized by a super().__init__ call.""" |
| 296 | self_type = op.fn.sig.args[0].type |
| 297 | assert isinstance(self_type, RInstance), self_type |
| 298 | cl = self_type.class_ir |
| 299 | return attributes_initialized_by_init_call(op) | cl._sometimes_initialized_attrs |
| 300 | |
| 301 | |
| 302 | class AttributeMaybeDefinedVisitor(BaseAnalysisVisitor[str]): |
no test coverage detected
searching dependent graphs…