Skip to content

Container fields

List and Dict fields for collection-typed attributes on domain elements.

See Container Fields reference for usage examples.

List

List(content_type: Any = None, pickled: bool = False, **kwargs: Any) -> list
Source code in src/protean/fields/containers.py
86
87
88
def List(
    content_type: Any = None, pickled: bool = False, **kwargs: Any
) -> list: ...  # type: ignore[misc]

Dict

Dict(**kwargs: Any) -> dict
Source code in src/protean/fields/containers.py
90
def Dict(**kwargs: Any) -> dict: ...  # type: ignore[misc]