variable is defined here, its type is (any) -> {any:any}, but got {str(aa):any} #1509
-
|
I'm using dirt in schema, basically, i need two different dirt:
And i have not found any doc for it (: so i just try to below kcl for it and got error: main.k kcl run |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
And you can |
Beta Was this translation helpful? Give feedback.
-
|
The doc of the KCL type system: https://www.kcl-lang.io/docs/reference/lang/tour#type-system |
Beta Was this translation helpful? Give feedback.
dictis a builtin function and it is also the runtime type string "dict" of any dict. You can use {str:str} or{str:bool}to denote the dict with str and bool type values.