(
node: t.Union["_FilterTestCommon", "Call"], eval_ctx: t.Optional[EvalContext]
)
| 714 | |
| 715 | |
| 716 | def args_as_const( |
| 717 | node: t.Union["_FilterTestCommon", "Call"], eval_ctx: t.Optional[EvalContext] |
| 718 | ) -> t.Tuple[t.List[t.Any], t.Dict[t.Any, t.Any]]: |
| 719 | args = [x.as_const(eval_ctx) for x in node.args] |
| 720 | kwargs = dict(x.as_const(eval_ctx) for x in node.kwargs) |
| 721 | |
| 722 | if node.dyn_args is not None: |
| 723 | try: |
| 724 | args.extend(node.dyn_args.as_const(eval_ctx)) |
| 725 | except Exception as e: |
| 726 | raise Impossible() from e |
| 727 | |
| 728 | if node.dyn_kwargs is not None: |
| 729 | try: |
| 730 | kwargs.update(node.dyn_kwargs.as_const(eval_ctx)) |
| 731 | except Exception as e: |
| 732 | raise Impossible() from e |
| 733 | |
| 734 | return args, kwargs |
| 735 | |
| 736 | |
| 737 | class _FilterTestCommon(Expr): |
no test coverage detected