fix(parser): update examples
This commit is contained in:
@@ -7,7 +7,7 @@ from __future__ import annotations
|
|||||||
df: Frame[
|
df: Frame[
|
||||||
verified: bool,
|
verified: bool,
|
||||||
birth_year: int,
|
birth_year: int,
|
||||||
height: float,
|
height: float + ( _ > 0 ) + ( _ < 250 ),
|
||||||
name: str,
|
name: str,
|
||||||
date: datetime,
|
date: datetime,
|
||||||
float, # unnamed
|
float, # unnamed
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ op <Latitude> - <Latitude> = <LatitudeDiff>
|
|||||||
op <Longitude> - <Longitude> = <LongitudeDiff>
|
op <Longitude> - <Longitude> = <LongitudeDiff>
|
||||||
|
|
||||||
// Simple custom type with a constraint
|
// 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
|
// Predefined custom constraints that can be referenced in other definitions
|
||||||
constraint Positive = _ >= 0
|
constraint Positive = _ >= 0
|
||||||
|
|||||||
Reference in New Issue
Block a user