Do lookup of `object_var` in the context. `temp_locals` is a dictionary, used for the locals.
(self, expression: str, temp_locals: dict[str, Any])
| 389 | ) |
| 390 | |
| 391 | def _lookup(self, expression: str, temp_locals: dict[str, Any]) -> object: |
| 392 | """ |
| 393 | Do lookup of `object_var` in the context. |
| 394 | `temp_locals` is a dictionary, used for the locals. |
| 395 | """ |
| 396 | try: |
| 397 | return eval(expression.strip(), self.get_globals(), temp_locals) |
| 398 | except BaseException: |
| 399 | return None # Many exception, like NameError can be thrown here. |
| 400 | |
| 401 | def get_completions( |
| 402 | self, document: Document, complete_event: CompleteEvent |
no test coverage detected