> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/variables/statevariables/statevariable/statevariable.contract.md).

# StateVariable.contract()

`contract() →` [`Contract`](/glider-ide/api/contract.md) `|` [`NoneObject`](/glider-ide/api/internal/noneobject.md)

## Query Example

```python
from glider import *


def query():
  return [
    state_var.contract()
    for state_var 
    in StateVariables().exec(10,10)
  ]
```

## Example Output

<figure><img src="/files/qGlKw216Oif86wbqAvOQ" alt=""><figcaption></figcaption></figure>
