-
Notifications
You must be signed in to change notification settings - Fork 9
Upgrade cel-python to 0.2.0 #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
020ef83
dc76568
0767933
265a4db
59df391
9e83b45
4cb19ec
3071c6d
b056ff0
1bcf22d
a5d7331
30cf42c
de6b5ed
cee983a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,9 @@ | |
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| # type: ignore | ||
| # TODO(#257): Fully test and fix types in this file. | ||
|
|
||
| from decimal import Decimal | ||
|
|
||
| import celpy # type: ignore | ||
|
|
@@ -44,9 +47,9 @@ def __init__(self, locale: str): | |
|
|
||
| def format(self, fmt: celtypes.Value, args: celtypes.Value) -> celpy.Result: | ||
| if not isinstance(fmt, celtypes.StringType): | ||
| return celpy.native_to_cel(celpy.new_error("format() requires a string as the first argument")) | ||
| return celpy.CELEvalError("format() requires a string as the first argument") | ||
| if not isinstance(args, celtypes.ListType): | ||
| return celpy.native_to_cel(celpy.new_error("format() requires a list as the second argument")) | ||
| return celpy.CELEvalError("format() requires a list as the second argument") | ||
|
Comment on lines
-47
to
+52
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't see a |
||
| # printf style formatting | ||
| i = 0 | ||
| j = 0 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused code AFAICT.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this is technically unused (after removing the legacy field path field), we actually plan on exposing it as a public API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, ok. want me to add it back here, or are you going to add it in some other form pre-1.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no big deal, it's always in the version control history