> For the complete documentation index, see [llms.txt](https://api.pyblish.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.pyblish.com/environment-variables/pyblish_strict_datatypes.md).

# PYBLISH\_STRICT\_DATATYPES

Throw errors when assigning invalid data types.

## Usage

When enabled the values in both `instance.data` and `context.data` will be validated.

```python
data = {
  "publish": True  # Boolean for GUIs to function.
}
```

## Example

```python
import os
os.environ["PYBLISH_STRICT_DATATYPES"] = "True"
```

{{ file.mtime }}
