From ee308fe22307effa41a27dcf7cc19448080ad235 Mon Sep 17 00:00:00 2001 From: LordBaryhobal Date: Mon, 18 May 2026 12:47:21 +0200 Subject: [PATCH] fix(parser): update examples --- examples/00_syntax_prototype/01_simple_types.py | 2 +- examples/00_syntax_prototype/02_custom_types.midas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/00_syntax_prototype/01_simple_types.py b/examples/00_syntax_prototype/01_simple_types.py index cfb10aa..725fdf4 100644 --- a/examples/00_syntax_prototype/01_simple_types.py +++ b/examples/00_syntax_prototype/01_simple_types.py @@ -7,7 +7,7 @@ from __future__ import annotations df: Frame[ verified: bool, birth_year: int, - height: float, + height: float + ( _ > 0 ) + ( _ < 250 ), name: str, date: datetime, float, # unnamed diff --git a/examples/00_syntax_prototype/02_custom_types.midas b/examples/00_syntax_prototype/02_custom_types.midas index 8248e16..017e40c 100644 --- a/examples/00_syntax_prototype/02_custom_types.midas +++ b/examples/00_syntax_prototype/02_custom_types.midas @@ -16,7 +16,7 @@ op - = op - = // Simple custom type with a constraint -type Age +type Age // Predefined custom constraints that can be referenced in other definitions constraint Positive = _ >= 0