Enter a class target scope.
(self, info: TypeInfo)
| 85 | return self.functions[:-1] |
| 86 | |
| 87 | def enter_class(self, info: TypeInfo) -> None: |
| 88 | """Enter a class target scope.""" |
| 89 | if not self.function: |
| 90 | self.classes.append(info) |
| 91 | else: |
| 92 | # Classes within functions are part of the enclosing function target. |
| 93 | self.ignored += 1 |
| 94 | |
| 95 | def leave_class(self) -> None: |
| 96 | """Leave a class target scope.""" |