Skip to content

[BUG] TypeError with cel-python v0.4 #341

Description

@Hunterlige

Description

New v0.4 cel-python release https://github.com/cloud-custodian/cel-python/releases/tag/v0.4 does not work with protovalidate python and cause a TypeError when validating a request .

Steps to Reproduce

pip install cel-python==0.4.0
protovalidate.validate(message=request)

Expected Behavior

No TypeError

Actual Behavior

File ".../lib/python3.12/site-packages/protovalidate/internal/cel_field_presence.py", line 43, in evaluate
e = Evaluator(ast=self.ast, activation=self.new_activation(context), functions=self.functions)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Runner.new_activation() takes 1 positional argument but 2 were given

Environment

  • Operating System: Linux
  • Version: Ubuntu 24.04
  • cel-python: 0.4.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions