(context: "DataContext")
| 992 | @staticmethod |
| 993 | @contextlib.contextmanager |
| 994 | def current(context: "DataContext"): |
| 995 | prev: Optional[DataContext] = DataContext._set_current(context) |
| 996 | try: |
| 997 | yield |
| 998 | finally: |
| 999 | DataContext._set_current(prev) |
| 1000 | |
| 1001 | @staticmethod |
| 1002 | def _set_current(context: Optional["DataContext"]) -> Optional["DataContext"]: |
nothing calls this directly
no test coverage detected