Get a variable dictionary of latest variables. Returns ------- res : Any The variable dictionary copy of latest variables.
(self)
| 274 | self.name2value[var].append(value) |
| 275 | |
| 276 | def get(self) -> dict[str, Any]: |
| 277 | """Get a variable dictionary of latest variables. |
| 278 | |
| 279 | Returns |
| 280 | ------- |
| 281 | res : Any |
| 282 | The variable dictionary copy of latest variables. |
| 283 | """ |
| 284 | return {key: values[-1] for key, values in self.name2value.items() if values} |
| 285 | |
| 286 | def get_at_depth(self, depth: int) -> dict[str, Any]: |
| 287 | """Get variables visible at the given frame depth, using current values. |
no test coverage detected