(self)
| 624 | self.error("Only class variables defined as ClassVar can be assigned to", line) |
| 625 | |
| 626 | def non_function_scope(self) -> bool: |
| 627 | # Currently the stack always has at least two items: dummy and top-level. |
| 628 | return len(self.fn_infos) <= 2 |
| 629 | |
| 630 | def top_level_fn_info(self) -> FuncInfo | None: |
| 631 | if self.non_function_scope(): |
no test coverage detected