Get the current request's g object from anywhere in the application. Returns: The current request's g object if available, None otherwise.
()
| 23 | |
| 24 | |
| 25 | def get_current_g() -> G | None: |
| 26 | """ |
| 27 | Get the current request's g object from anywhere in the application. |
| 28 | |
| 29 | Returns: |
| 30 | The current request's g object if available, None otherwise. |
| 31 | """ |
| 32 | return get_current_context() |
| 33 | |
| 34 | |
| 35 | def require_g() -> G: |
nothing calls this directly
no test coverage detected