Enter the context manager and set this context as current. Returns: This context instance.
(self)
| 485 | _global_context = None |
| 486 | |
| 487 | def __enter__(self) -> TortoiseContext: |
| 488 | """ |
| 489 | Enter the context manager and set this context as current. |
| 490 | |
| 491 | Returns: |
| 492 | This context instance. |
| 493 | """ |
| 494 | self._token = _current_context.set(self) |
| 495 | return self |
| 496 | |
| 497 | def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None: |
| 498 | """ |