# Callables.contracts()

`contracts() →` [`Contracts`](https://glide.gitbook.io/main/glider-ide/api/contracts)

Returns the [Contracts](https://glide.gitbook.io/main/glider-ide/api/contracts) object for the contracts of the callables. This method can be called on all [Callables](https://glide.gitbook.io/main/glider-ide/api/callables) child classes: [Functions](https://glide.gitbook.io/main/glider-ide/api/functions) and [Modifiers](https://glide.gitbook.io/main/glider-ide/api/modifiers).

The function will account for the inheritance of the contracts, thus, even one callable can have multiple contracts where it is accessible.

### Functions Example

```python
from glider import *

def query():
  # Retrieve the contracts of a list of functions
  contracts = Functions().contracts().exec(100)

  # Return the first five contracts
  return contracts[:5]
```

Output:

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FWUL56gPSRpxv3IZzkyzs%2Fimage.png?alt=media&#x26;token=73318ed8-a228-4a65-a06c-487e2bc715bf" alt=""><figcaption></figcaption></figure>

### Modifiers Example

```python
from glider import *

def query():
  # Retrieve the contracts of a list of modifiers
  contracts = Modifiers().contracts().exec(100)

  # Return the first five contracts
  return contracts[:5]
```

Output:

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2F0QX2tvvI2Vx2FrXL25Ae%2Fimage.png?alt=media&#x26;token=62f1ecdf-4ad5-467e-8ee1-40cf38296f2e" alt=""><figcaption></figcaption></figure>
