-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: evaluator runtime schema type get attr and type cast (#1425)
Signed-off-by: peefy <[email protected]>
- Loading branch information
Showing
9 changed files
with
117 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import types | ||
|
||
hosts0: {str:types.Host} = { | ||
foo: {host: "foo.example.net"} | ||
bar: {host: "bar.example.net"} | ||
} | ||
|
||
hosts1: {str:types.HostPort} = { | ||
foo: {host: "foo.example.net", port: 80} | ||
bar: {host: "bar.example.net", port: 80} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
schema Host: | ||
host: str | ||
|
||
schema HostPort(Host): | ||
port: int |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import types | ||
|
||
hosts0: [types.Host] = [ | ||
{host: "foo.example.net"} | ||
{host: "bar.example.net"} | ||
] | ||
|
||
hosts1: [types.HostPort] = [ | ||
{host: "foo.example.net", port: 80} | ||
{host: "bar.example.net", port: 80} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
schema Host: | ||
host: str | ||
|
||
schema HostPort(Host): | ||
port: int |