## Introspection


## current_stage()


Return the stage of the innermost open `with Stage(...)` block.


Usage

``` python
current_stage()
```


Use it inside a reusable helper that operates on whichever stage is active, so callers need not pass the stage explicitly. Returns `None` outside any stage block, including during the discovery pass.


#### Returns


<a href="stage-authoring.html#docker_dsl.Stage" class="gdls-link gdls-code"><code>Stage</code></a>` | None`  
The active stage, or `None` when no stage block is open.
