Skip to content

SimpleProperty

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  3530052338["typedefs.SimpleProperty"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 3530052338
  2751680898 --> 2645524081

🛈 DocStrings

Bases: PropertyBase

Schema property for primitive types.

Source code in src/schemez/functionschema/typedefs.py
class SimpleProperty(PropertyBase):
    """Schema property for primitive types."""

    type: Literal["string", "number", "integer", "boolean"]
    enum: NotRequired[list[Any]]

:fa-brands-github: Show source on GitHub