fix(parser): update examples

This commit is contained in:
2026-05-18 12:47:21 +02:00
parent 3f199ff134
commit ee308fe223
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -16,7 +16,7 @@ op <Latitude> - <Latitude> = <LatitudeDiff>
op <Longitude> - <Longitude> = <LongitudeDiff>
// Simple custom type with a constraint
type Age<int + (0 <= _ < 150)>
type Age<int + (0 <= _) + (_ < 150)>
// Predefined custom constraints that can be referenced in other definitions
constraint Positive = _ >= 0