(self)
| 7442 | return any(s in (SCOPE_FUNC, SCOPE_COMPREHENSION) for s in self.scope_stack) |
| 7443 | |
| 7444 | def is_class_scope(self) -> bool: |
| 7445 | return self.type is not None and not self.is_func_scope() |
| 7446 | |
| 7447 | def is_module_scope(self) -> bool: |
| 7448 | return not (self.is_class_scope() or self.is_func_scope()) |
no test coverage detected