(self, s: AssignmentExpr)
| 3258 | # |
| 3259 | |
| 3260 | def visit_assignment_expr(self, s: AssignmentExpr) -> None: |
| 3261 | s.value.accept(self) |
| 3262 | if self.is_func_scope(): |
| 3263 | if not self.check_valid_comprehension(s): |
| 3264 | return |
| 3265 | self.analyze_lvalue(s.target, escape_comprehensions=True, has_explicit_value=True) |
| 3266 | |
| 3267 | def check_valid_comprehension(self, s: AssignmentExpr) -> bool: |
| 3268 | """Check that assignment expression is not nested within comprehension at class scope. |
nothing calls this directly
no test coverage detected