Skip to main content

ItemBase

This class serves as a base data model for items, defining the core attributes required for item representation. It includes a mandatory title with length constraints and an optional description field.

Attributes​

AttributeTypeDescription
titlestrThe primary display name of the item, which must be between 1 and 255 characters in length.
description`strNone` = None

Constructor​

Signature​

def ItemBase(
title: string,
description: string | null = null
) - > null

Parameters​

NameTypeDescription
titlestringThe title of the item, must be between 1 and 255 characters.
description`stringnull` = null

Methods​


title()​

def title() - > str

The primary name or label of the item.

Returns​

TypeDescription
strA string between 1 and 255 characters representing the item title.

description()​

def description() - > str | None

An optional detailed explanation providing additional context about the item.

Returns​

TypeDescription
`strNone`