Annotations — Aquilia Documentation
Comprehensive guide and documentation for Annotations in the Aquilia framework. View API reference, examples, and implementation patterns.
import useTheme from '../../../context/ThemeContext' import CodeBlock from '../../../components/CodeBlock' import FileCode from 'lucide-react' import NextSteps from '../../../components/NextSteps' export function ContractsAnnotations() const theme = useTheme() const isDark = theme === 'dark' const boxClass = `p-6 rounded-2xl border $ isDark ? 'bg-[#0A0A0A] border-white/10' : 'bg-white border-gray-200' ` return ( Contracts / Annotations & Field() Annotations & Field() As an alternative to explicit Facet declarations, Aquilia supports type-annotation-driven Contracts using the Field descriptor. Write Pythonic type hints and let the metaclass derive the correct Facets automatically. /* Two Declaration Styles */ Two Declaration Styles Explicit Facets Full control, more verbose )
Go to Homepage