---
sidebar:
  label: roboto.warnings
  order: 34
title: roboto.warnings
---
## Module Contents

### ExperimentalWarning

```python
exception roboto.warnings.ExperimentalWarning
```

`from roboto import ExperimentalWarning`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/warnings.py#L20-L21)

Bases: `Warning`

Warning category for experimental APIs.

### experimental()

```python
def roboto.warnings.experimental(target: _C, /) -> _C
def roboto.warnings.experimental(target: _F, /) -> _F
def roboto.warnings.experimental(target: str, /) -> Callable[[_T], _T]
def roboto.warnings.experimental(*, message: str) -> Callable[[_T], _T]
```

`from roboto import experimental`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/warnings.py#L34-L34)

Mark a class, function, or method as experimental.

Experimental APIs may be incomplete, subject to change, or removed without notice.

Prepends a `.. warning::` notice to the target's docstring, so documentation rendered from it and `help()` show the target as experimental, then returns the target itself.

Can be used in three ways:

```
@experimental
def my_function(): ...


@experimental("Custom message about this API.")
def my_function(): ...


@experimental(message="Custom message about this API.")
def my_function(): ...
```

**Parameters**

- **target**: The object to mark when applied as `@experimental`, or the notice text when called as `@experimental("...")`.
- **message**: The notice text. Defaults to "\<qualified name of the target> is experimental and may change or be removed without notice."

**Raises**

- `TypeError`: The target is not callable, as when the decorator is placed above `@property` or `@classmethod` and not below it.

### roboto_default_warning_behavior()

```python
def roboto.warnings.roboto_default_warning_behavior()
```

`from roboto.warnings import roboto_default_warning_behavior`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/warnings.py#L11-L17)
