Are we underneath a function scope, even if we are in a nested class also?
(self)
| 7438 | return scope_type in (SCOPE_FUNC, SCOPE_COMPREHENSION) |
| 7439 | |
| 7440 | def is_nested_within_func_scope(self) -> bool: |
| 7441 | """Are we underneath a function scope, even if we are in a nested class also?""" |
| 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() |
no test coverage detected