(new_parent_type: ProperType)
| 7183 | member_name = expr.name |
| 7184 | |
| 7185 | def replay_lookup(new_parent_type: ProperType) -> Type | None: |
| 7186 | with self.msg.filter_errors() as w: |
| 7187 | member_type = analyze_member_access( |
| 7188 | name=member_name, |
| 7189 | typ=new_parent_type, |
| 7190 | context=parent_expr, |
| 7191 | is_lvalue=False, |
| 7192 | is_super=False, |
| 7193 | is_operator=False, |
| 7194 | original_type=new_parent_type, |
| 7195 | chk=self, |
| 7196 | in_literal_context=False, |
| 7197 | ) |
| 7198 | if w.has_new_errors(): |
| 7199 | return None |
| 7200 | else: |
| 7201 | return member_type |
| 7202 | |
| 7203 | elif isinstance(expr, IndexExpr): |
| 7204 | parent_expr = self._propagate_walrus_assignments(expr.base, output) |
nothing calls this directly
no test coverage detected