Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 429 Bytes

PYBLISH_STRICT_DATATYPES.md

File metadata and controls

30 lines (21 loc) · 429 Bytes

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.

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



Example

import os
os.environ["PYBLISH_STRICT_DATATYPES"] = "True"
{{ file.mtime }}