Return the current target (may be a class).
(self)
| 38 | return self.module |
| 39 | |
| 40 | def current_full_target(self) -> str: |
| 41 | """Return the current target (may be a class).""" |
| 42 | assert self.module |
| 43 | if self.function: |
| 44 | return self.function.fullname |
| 45 | if self.classes: |
| 46 | return self.classes[-1].fullname |
| 47 | return self.module |
| 48 | |
| 49 | def current_type_name(self) -> str | None: |
| 50 | """Return the current type's short name if it exists""" |
no outgoing calls
no test coverage detected