rappel 0.10.0__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rappel might be problematic. Click here for more details.

proto/ast_pb2.pyi ADDED
@@ -0,0 +1,1665 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import sys
9
+ import typing
10
+
11
+ import google.protobuf.descriptor
12
+ import google.protobuf.internal.containers
13
+ import google.protobuf.internal.enum_type_wrapper
14
+ import google.protobuf.message
15
+
16
+ if sys.version_info >= (3, 10):
17
+ import typing as typing_extensions
18
+ else:
19
+ import typing_extensions
20
+
21
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
22
+
23
+ class _BinaryOperator:
24
+ ValueType = typing.NewType("ValueType", builtins.int)
25
+ V: typing_extensions.TypeAlias = ValueType
26
+
27
+ class _BinaryOperatorEnumTypeWrapper(
28
+ google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BinaryOperator.ValueType],
29
+ builtins.type,
30
+ ):
31
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
32
+ BINARY_OP_UNSPECIFIED: _BinaryOperator.ValueType # 0
33
+ BINARY_OP_ADD: _BinaryOperator.ValueType # 1
34
+ """Arithmetic"""
35
+ BINARY_OP_SUB: _BinaryOperator.ValueType # 2
36
+ BINARY_OP_MUL: _BinaryOperator.ValueType # 3
37
+ BINARY_OP_DIV: _BinaryOperator.ValueType # 4
38
+ BINARY_OP_FLOOR_DIV: _BinaryOperator.ValueType # 5
39
+ BINARY_OP_MOD: _BinaryOperator.ValueType # 6
40
+ BINARY_OP_EQ: _BinaryOperator.ValueType # 10
41
+ """Comparison"""
42
+ BINARY_OP_NE: _BinaryOperator.ValueType # 11
43
+ BINARY_OP_LT: _BinaryOperator.ValueType # 12
44
+ BINARY_OP_LE: _BinaryOperator.ValueType # 13
45
+ BINARY_OP_GT: _BinaryOperator.ValueType # 14
46
+ BINARY_OP_GE: _BinaryOperator.ValueType # 15
47
+ BINARY_OP_IN: _BinaryOperator.ValueType # 16
48
+ BINARY_OP_NOT_IN: _BinaryOperator.ValueType # 17
49
+ BINARY_OP_AND: _BinaryOperator.ValueType # 20
50
+ """Logical"""
51
+ BINARY_OP_OR: _BinaryOperator.ValueType # 21
52
+
53
+ class BinaryOperator(_BinaryOperator, metaclass=_BinaryOperatorEnumTypeWrapper): ...
54
+
55
+ BINARY_OP_UNSPECIFIED: BinaryOperator.ValueType # 0
56
+ BINARY_OP_ADD: BinaryOperator.ValueType # 1
57
+ """Arithmetic"""
58
+ BINARY_OP_SUB: BinaryOperator.ValueType # 2
59
+ BINARY_OP_MUL: BinaryOperator.ValueType # 3
60
+ BINARY_OP_DIV: BinaryOperator.ValueType # 4
61
+ BINARY_OP_FLOOR_DIV: BinaryOperator.ValueType # 5
62
+ BINARY_OP_MOD: BinaryOperator.ValueType # 6
63
+ BINARY_OP_EQ: BinaryOperator.ValueType # 10
64
+ """Comparison"""
65
+ BINARY_OP_NE: BinaryOperator.ValueType # 11
66
+ BINARY_OP_LT: BinaryOperator.ValueType # 12
67
+ BINARY_OP_LE: BinaryOperator.ValueType # 13
68
+ BINARY_OP_GT: BinaryOperator.ValueType # 14
69
+ BINARY_OP_GE: BinaryOperator.ValueType # 15
70
+ BINARY_OP_IN: BinaryOperator.ValueType # 16
71
+ BINARY_OP_NOT_IN: BinaryOperator.ValueType # 17
72
+ BINARY_OP_AND: BinaryOperator.ValueType # 20
73
+ """Logical"""
74
+ BINARY_OP_OR: BinaryOperator.ValueType # 21
75
+ Global___BinaryOperator: typing_extensions.TypeAlias = BinaryOperator
76
+
77
+ class _UnaryOperator:
78
+ ValueType = typing.NewType("ValueType", builtins.int)
79
+ V: typing_extensions.TypeAlias = ValueType
80
+
81
+ class _UnaryOperatorEnumTypeWrapper(
82
+ google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_UnaryOperator.ValueType],
83
+ builtins.type,
84
+ ):
85
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
86
+ UNARY_OP_UNSPECIFIED: _UnaryOperator.ValueType # 0
87
+ UNARY_OP_NEG: _UnaryOperator.ValueType # 1
88
+ UNARY_OP_NOT: _UnaryOperator.ValueType # 2
89
+
90
+ class UnaryOperator(_UnaryOperator, metaclass=_UnaryOperatorEnumTypeWrapper): ...
91
+
92
+ UNARY_OP_UNSPECIFIED: UnaryOperator.ValueType # 0
93
+ UNARY_OP_NEG: UnaryOperator.ValueType # 1
94
+ UNARY_OP_NOT: UnaryOperator.ValueType # 2
95
+ Global___UnaryOperator: typing_extensions.TypeAlias = UnaryOperator
96
+
97
+ class _GlobalFunction:
98
+ ValueType = typing.NewType("ValueType", builtins.int)
99
+ V: typing_extensions.TypeAlias = ValueType
100
+
101
+ class _GlobalFunctionEnumTypeWrapper(
102
+ google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_GlobalFunction.ValueType],
103
+ builtins.type,
104
+ ):
105
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
106
+ GLOBAL_FUNCTION_UNSPECIFIED: _GlobalFunction.ValueType # 0
107
+ GLOBAL_FUNCTION_RANGE: _GlobalFunction.ValueType # 1
108
+ GLOBAL_FUNCTION_LEN: _GlobalFunction.ValueType # 2
109
+ GLOBAL_FUNCTION_ENUMERATE: _GlobalFunction.ValueType # 3
110
+ GLOBAL_FUNCTION_ISEXCEPTION: _GlobalFunction.ValueType # 4
111
+
112
+ class GlobalFunction(_GlobalFunction, metaclass=_GlobalFunctionEnumTypeWrapper):
113
+ """Global (built-in) functions supported by the runtime."""
114
+
115
+ GLOBAL_FUNCTION_UNSPECIFIED: GlobalFunction.ValueType # 0
116
+ GLOBAL_FUNCTION_RANGE: GlobalFunction.ValueType # 1
117
+ GLOBAL_FUNCTION_LEN: GlobalFunction.ValueType # 2
118
+ GLOBAL_FUNCTION_ENUMERATE: GlobalFunction.ValueType # 3
119
+ GLOBAL_FUNCTION_ISEXCEPTION: GlobalFunction.ValueType # 4
120
+ Global___GlobalFunction: typing_extensions.TypeAlias = GlobalFunction
121
+
122
+ @typing.final
123
+ class Program(google.protobuf.message.Message):
124
+ """-----------------------------------------------------------------------------
125
+ Top-Level Structure
126
+ -----------------------------------------------------------------------------
127
+
128
+ A complete Rappel program (one or more function definitions)
129
+ """
130
+
131
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
132
+
133
+ FUNCTIONS_FIELD_NUMBER: builtins.int
134
+ @property
135
+ def functions(
136
+ self,
137
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
138
+ Global___FunctionDef
139
+ ]: ...
140
+ def __init__(
141
+ self,
142
+ *,
143
+ functions: collections.abc.Iterable[Global___FunctionDef] | None = ...,
144
+ ) -> None: ...
145
+ def ClearField(self, field_name: typing.Literal["functions", b"functions"]) -> None: ...
146
+
147
+ Global___Program: typing_extensions.TypeAlias = Program
148
+
149
+ @typing.final
150
+ class FunctionDef(google.protobuf.message.Message):
151
+ """Function definition with explicit input/output declarations"""
152
+
153
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
154
+
155
+ NAME_FIELD_NUMBER: builtins.int
156
+ IO_FIELD_NUMBER: builtins.int
157
+ BODY_FIELD_NUMBER: builtins.int
158
+ SPAN_FIELD_NUMBER: builtins.int
159
+ name: builtins.str
160
+ @property
161
+ def io(self) -> Global___IoDecl: ...
162
+ @property
163
+ def body(self) -> Global___Block: ...
164
+ @property
165
+ def span(self) -> Global___Span: ...
166
+ def __init__(
167
+ self,
168
+ *,
169
+ name: builtins.str = ...,
170
+ io: Global___IoDecl | None = ...,
171
+ body: Global___Block | None = ...,
172
+ span: Global___Span | None = ...,
173
+ ) -> None: ...
174
+ def HasField(
175
+ self, field_name: typing.Literal["body", b"body", "io", b"io", "span", b"span"]
176
+ ) -> builtins.bool: ...
177
+ def ClearField(
178
+ self,
179
+ field_name: typing.Literal["body", b"body", "io", b"io", "name", b"name", "span", b"span"],
180
+ ) -> None: ...
181
+
182
+ Global___FunctionDef: typing_extensions.TypeAlias = FunctionDef
183
+
184
+ @typing.final
185
+ class IoDecl(google.protobuf.message.Message):
186
+ """Input/output declaration: fn foo(input: [a, b], output: [c])"""
187
+
188
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
189
+
190
+ INPUTS_FIELD_NUMBER: builtins.int
191
+ OUTPUTS_FIELD_NUMBER: builtins.int
192
+ SPAN_FIELD_NUMBER: builtins.int
193
+ @property
194
+ def inputs(
195
+ self,
196
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
197
+ @property
198
+ def outputs(
199
+ self,
200
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
201
+ @property
202
+ def span(self) -> Global___Span: ...
203
+ def __init__(
204
+ self,
205
+ *,
206
+ inputs: collections.abc.Iterable[builtins.str] | None = ...,
207
+ outputs: collections.abc.Iterable[builtins.str] | None = ...,
208
+ span: Global___Span | None = ...,
209
+ ) -> None: ...
210
+ def HasField(self, field_name: typing.Literal["span", b"span"]) -> builtins.bool: ...
211
+ def ClearField(
212
+ self,
213
+ field_name: typing.Literal["inputs", b"inputs", "outputs", b"outputs", "span", b"span"],
214
+ ) -> None: ...
215
+
216
+ Global___IoDecl: typing_extensions.TypeAlias = IoDecl
217
+
218
+ @typing.final
219
+ class Block(google.protobuf.message.Message):
220
+ """A block of statements (function body - no call restrictions)"""
221
+
222
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
223
+
224
+ STATEMENTS_FIELD_NUMBER: builtins.int
225
+ SPAN_FIELD_NUMBER: builtins.int
226
+ @property
227
+ def statements(
228
+ self,
229
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
230
+ Global___Statement
231
+ ]: ...
232
+ @property
233
+ def span(self) -> Global___Span: ...
234
+ def __init__(
235
+ self,
236
+ *,
237
+ statements: collections.abc.Iterable[Global___Statement] | None = ...,
238
+ span: Global___Span | None = ...,
239
+ ) -> None: ...
240
+ def HasField(self, field_name: typing.Literal["span", b"span"]) -> builtins.bool: ...
241
+ def ClearField(
242
+ self, field_name: typing.Literal["span", b"span", "statements", b"statements"]
243
+ ) -> None: ...
244
+
245
+ Global___Block: typing_extensions.TypeAlias = Block
246
+
247
+ @typing.final
248
+ class Statement(google.protobuf.message.Message):
249
+ """-----------------------------------------------------------------------------
250
+ Statements
251
+ -----------------------------------------------------------------------------
252
+ """
253
+
254
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
255
+
256
+ ASSIGNMENT_FIELD_NUMBER: builtins.int
257
+ ACTION_CALL_FIELD_NUMBER: builtins.int
258
+ SPREAD_ACTION_FIELD_NUMBER: builtins.int
259
+ PARALLEL_BLOCK_FIELD_NUMBER: builtins.int
260
+ FOR_LOOP_FIELD_NUMBER: builtins.int
261
+ CONDITIONAL_FIELD_NUMBER: builtins.int
262
+ TRY_EXCEPT_FIELD_NUMBER: builtins.int
263
+ RETURN_STMT_FIELD_NUMBER: builtins.int
264
+ EXPR_STMT_FIELD_NUMBER: builtins.int
265
+ BREAK_STMT_FIELD_NUMBER: builtins.int
266
+ CONTINUE_STMT_FIELD_NUMBER: builtins.int
267
+ WHILE_LOOP_FIELD_NUMBER: builtins.int
268
+ SPAN_FIELD_NUMBER: builtins.int
269
+ @property
270
+ def assignment(self) -> Global___Assignment: ...
271
+ @property
272
+ def action_call(self) -> Global___ActionCall: ...
273
+ @property
274
+ def spread_action(self) -> Global___SpreadAction: ...
275
+ @property
276
+ def parallel_block(self) -> Global___ParallelBlock: ...
277
+ @property
278
+ def for_loop(self) -> Global___ForLoop: ...
279
+ @property
280
+ def conditional(self) -> Global___Conditional: ...
281
+ @property
282
+ def try_except(self) -> Global___TryExcept: ...
283
+ @property
284
+ def return_stmt(self) -> Global___ReturnStmt: ...
285
+ @property
286
+ def expr_stmt(self) -> Global___ExprStmt: ...
287
+ @property
288
+ def break_stmt(self) -> Global___BreakStmt: ...
289
+ @property
290
+ def continue_stmt(self) -> Global___ContinueStmt: ...
291
+ @property
292
+ def while_loop(self) -> Global___WhileLoop: ...
293
+ @property
294
+ def span(self) -> Global___Span: ...
295
+ def __init__(
296
+ self,
297
+ *,
298
+ assignment: Global___Assignment | None = ...,
299
+ action_call: Global___ActionCall | None = ...,
300
+ spread_action: Global___SpreadAction | None = ...,
301
+ parallel_block: Global___ParallelBlock | None = ...,
302
+ for_loop: Global___ForLoop | None = ...,
303
+ conditional: Global___Conditional | None = ...,
304
+ try_except: Global___TryExcept | None = ...,
305
+ return_stmt: Global___ReturnStmt | None = ...,
306
+ expr_stmt: Global___ExprStmt | None = ...,
307
+ break_stmt: Global___BreakStmt | None = ...,
308
+ continue_stmt: Global___ContinueStmt | None = ...,
309
+ while_loop: Global___WhileLoop | None = ...,
310
+ span: Global___Span | None = ...,
311
+ ) -> None: ...
312
+ def HasField(
313
+ self,
314
+ field_name: typing.Literal[
315
+ "action_call",
316
+ b"action_call",
317
+ "assignment",
318
+ b"assignment",
319
+ "break_stmt",
320
+ b"break_stmt",
321
+ "conditional",
322
+ b"conditional",
323
+ "continue_stmt",
324
+ b"continue_stmt",
325
+ "expr_stmt",
326
+ b"expr_stmt",
327
+ "for_loop",
328
+ b"for_loop",
329
+ "kind",
330
+ b"kind",
331
+ "parallel_block",
332
+ b"parallel_block",
333
+ "return_stmt",
334
+ b"return_stmt",
335
+ "span",
336
+ b"span",
337
+ "spread_action",
338
+ b"spread_action",
339
+ "try_except",
340
+ b"try_except",
341
+ "while_loop",
342
+ b"while_loop",
343
+ ],
344
+ ) -> builtins.bool: ...
345
+ def ClearField(
346
+ self,
347
+ field_name: typing.Literal[
348
+ "action_call",
349
+ b"action_call",
350
+ "assignment",
351
+ b"assignment",
352
+ "break_stmt",
353
+ b"break_stmt",
354
+ "conditional",
355
+ b"conditional",
356
+ "continue_stmt",
357
+ b"continue_stmt",
358
+ "expr_stmt",
359
+ b"expr_stmt",
360
+ "for_loop",
361
+ b"for_loop",
362
+ "kind",
363
+ b"kind",
364
+ "parallel_block",
365
+ b"parallel_block",
366
+ "return_stmt",
367
+ b"return_stmt",
368
+ "span",
369
+ b"span",
370
+ "spread_action",
371
+ b"spread_action",
372
+ "try_except",
373
+ b"try_except",
374
+ "while_loop",
375
+ b"while_loop",
376
+ ],
377
+ ) -> None: ...
378
+ def WhichOneof(
379
+ self, oneof_group: typing.Literal["kind", b"kind"]
380
+ ) -> (
381
+ typing.Literal[
382
+ "assignment",
383
+ "action_call",
384
+ "spread_action",
385
+ "parallel_block",
386
+ "for_loop",
387
+ "conditional",
388
+ "try_except",
389
+ "return_stmt",
390
+ "expr_stmt",
391
+ "break_stmt",
392
+ "continue_stmt",
393
+ "while_loop",
394
+ ]
395
+ | None
396
+ ): ...
397
+
398
+ Global___Statement: typing_extensions.TypeAlias = Statement
399
+
400
+ @typing.final
401
+ class BreakStmt(google.protobuf.message.Message):
402
+ """Break statement (exits innermost loop)"""
403
+
404
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
405
+
406
+ def __init__(
407
+ self,
408
+ ) -> None: ...
409
+
410
+ Global___BreakStmt: typing_extensions.TypeAlias = BreakStmt
411
+
412
+ @typing.final
413
+ class ContinueStmt(google.protobuf.message.Message):
414
+ """Continue statement (skips to next iteration of innermost loop)"""
415
+
416
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
417
+
418
+ def __init__(
419
+ self,
420
+ ) -> None: ...
421
+
422
+ Global___ContinueStmt: typing_extensions.TypeAlias = ContinueStmt
423
+
424
+ @typing.final
425
+ class Assignment(google.protobuf.message.Message):
426
+ """Variable assignment: x = expr"""
427
+
428
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
429
+
430
+ TARGETS_FIELD_NUMBER: builtins.int
431
+ VALUE_FIELD_NUMBER: builtins.int
432
+ @property
433
+ def targets(
434
+ self,
435
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
436
+ """Single variable or tuple unpacking (a, b = expr)"""
437
+
438
+ @property
439
+ def value(self) -> Global___Expr: ...
440
+ def __init__(
441
+ self,
442
+ *,
443
+ targets: collections.abc.Iterable[builtins.str] | None = ...,
444
+ value: Global___Expr | None = ...,
445
+ ) -> None: ...
446
+ def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
447
+ def ClearField(
448
+ self, field_name: typing.Literal["targets", b"targets", "value", b"value"]
449
+ ) -> None: ...
450
+
451
+ Global___Assignment: typing_extensions.TypeAlias = Assignment
452
+
453
+ @typing.final
454
+ class ActionCall(google.protobuf.message.Message):
455
+ """Action call: @action(kwargs) [retry_policy] [timeout]
456
+ Can be used as:
457
+ - Statement (side effect only): @notify(user=x)
458
+ - Expression in Assignment (with binding): result = @fetch(id=x)
459
+ - Expression in Assignment (with unpacking): a, b = @get_pair()
460
+ """
461
+
462
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
463
+
464
+ ACTION_NAME_FIELD_NUMBER: builtins.int
465
+ KWARGS_FIELD_NUMBER: builtins.int
466
+ POLICIES_FIELD_NUMBER: builtins.int
467
+ MODULE_NAME_FIELD_NUMBER: builtins.int
468
+ action_name: builtins.str
469
+ module_name: builtins.str
470
+ """Python module containing the action"""
471
+ @property
472
+ def kwargs(
473
+ self,
474
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Kwarg]: ...
475
+ @property
476
+ def policies(
477
+ self,
478
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
479
+ Global___PolicyBracket
480
+ ]: ...
481
+ def __init__(
482
+ self,
483
+ *,
484
+ action_name: builtins.str = ...,
485
+ kwargs: collections.abc.Iterable[Global___Kwarg] | None = ...,
486
+ policies: collections.abc.Iterable[Global___PolicyBracket] | None = ...,
487
+ module_name: builtins.str | None = ...,
488
+ ) -> None: ...
489
+ def HasField(
490
+ self,
491
+ field_name: typing.Literal["_module_name", b"_module_name", "module_name", b"module_name"],
492
+ ) -> builtins.bool: ...
493
+ def ClearField(
494
+ self,
495
+ field_name: typing.Literal[
496
+ "_module_name",
497
+ b"_module_name",
498
+ "action_name",
499
+ b"action_name",
500
+ "kwargs",
501
+ b"kwargs",
502
+ "module_name",
503
+ b"module_name",
504
+ "policies",
505
+ b"policies",
506
+ ],
507
+ ) -> None: ...
508
+ def WhichOneof(
509
+ self, oneof_group: typing.Literal["_module_name", b"_module_name"]
510
+ ) -> typing.Literal["module_name"] | None: ...
511
+
512
+ Global___ActionCall: typing_extensions.TypeAlias = ActionCall
513
+
514
+ @typing.final
515
+ class SpreadAction(google.protobuf.message.Message):
516
+ """Spread action statement (side effect only, no result capture)
517
+ For result capture, use Assignment with SpreadExpr
518
+ """
519
+
520
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
521
+
522
+ COLLECTION_FIELD_NUMBER: builtins.int
523
+ LOOP_VAR_FIELD_NUMBER: builtins.int
524
+ ACTION_FIELD_NUMBER: builtins.int
525
+ loop_var: builtins.str
526
+ """Variable name for each item"""
527
+ @property
528
+ def collection(self) -> Global___Expr:
529
+ """The collection to iterate"""
530
+
531
+ @property
532
+ def action(self) -> Global___ActionCall:
533
+ """The action to call per item"""
534
+
535
+ def __init__(
536
+ self,
537
+ *,
538
+ collection: Global___Expr | None = ...,
539
+ loop_var: builtins.str = ...,
540
+ action: Global___ActionCall | None = ...,
541
+ ) -> None: ...
542
+ def HasField(
543
+ self, field_name: typing.Literal["action", b"action", "collection", b"collection"]
544
+ ) -> builtins.bool: ...
545
+ def ClearField(
546
+ self,
547
+ field_name: typing.Literal[
548
+ "action", b"action", "collection", b"collection", "loop_var", b"loop_var"
549
+ ],
550
+ ) -> None: ...
551
+
552
+ Global___SpreadAction: typing_extensions.TypeAlias = SpreadAction
553
+
554
+ @typing.final
555
+ class ParallelBlock(google.protobuf.message.Message):
556
+ """Parallel block statement (side effect only, no result capture)
557
+ For result capture, use Assignment with ParallelExpr
558
+ """
559
+
560
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
561
+
562
+ CALLS_FIELD_NUMBER: builtins.int
563
+ @property
564
+ def calls(
565
+ self,
566
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Call]:
567
+ """Actions or function calls to run in parallel"""
568
+
569
+ def __init__(
570
+ self,
571
+ *,
572
+ calls: collections.abc.Iterable[Global___Call] | None = ...,
573
+ ) -> None: ...
574
+ def ClearField(self, field_name: typing.Literal["calls", b"calls"]) -> None: ...
575
+
576
+ Global___ParallelBlock: typing_extensions.TypeAlias = ParallelBlock
577
+
578
+ @typing.final
579
+ class Call(google.protobuf.message.Message):
580
+ """A call that can be either action or function (for parallel blocks)"""
581
+
582
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
583
+
584
+ ACTION_FIELD_NUMBER: builtins.int
585
+ FUNCTION_FIELD_NUMBER: builtins.int
586
+ @property
587
+ def action(self) -> Global___ActionCall: ...
588
+ @property
589
+ def function(self) -> Global___FunctionCall: ...
590
+ def __init__(
591
+ self,
592
+ *,
593
+ action: Global___ActionCall | None = ...,
594
+ function: Global___FunctionCall | None = ...,
595
+ ) -> None: ...
596
+ def HasField(
597
+ self,
598
+ field_name: typing.Literal["action", b"action", "function", b"function", "kind", b"kind"],
599
+ ) -> builtins.bool: ...
600
+ def ClearField(
601
+ self,
602
+ field_name: typing.Literal["action", b"action", "function", b"function", "kind", b"kind"],
603
+ ) -> None: ...
604
+ def WhichOneof(
605
+ self, oneof_group: typing.Literal["kind", b"kind"]
606
+ ) -> typing.Literal["action", "function"] | None: ...
607
+
608
+ Global___Call: typing_extensions.TypeAlias = Call
609
+
610
+ @typing.final
611
+ class ForLoop(google.protobuf.message.Message):
612
+ """For loop: for item in items: ..."""
613
+
614
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
615
+
616
+ LOOP_VARS_FIELD_NUMBER: builtins.int
617
+ ITERABLE_FIELD_NUMBER: builtins.int
618
+ BLOCK_BODY_FIELD_NUMBER: builtins.int
619
+ @property
620
+ def loop_vars(
621
+ self,
622
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
623
+ """Loop variable(s) for unpacking"""
624
+
625
+ @property
626
+ def iterable(self) -> Global___Expr: ...
627
+ @property
628
+ def block_body(self) -> Global___Block: ...
629
+ def __init__(
630
+ self,
631
+ *,
632
+ loop_vars: collections.abc.Iterable[builtins.str] | None = ...,
633
+ iterable: Global___Expr | None = ...,
634
+ block_body: Global___Block | None = ...,
635
+ ) -> None: ...
636
+ def HasField(
637
+ self, field_name: typing.Literal["block_body", b"block_body", "iterable", b"iterable"]
638
+ ) -> builtins.bool: ...
639
+ def ClearField(
640
+ self,
641
+ field_name: typing.Literal[
642
+ "block_body", b"block_body", "iterable", b"iterable", "loop_vars", b"loop_vars"
643
+ ],
644
+ ) -> None: ...
645
+
646
+ Global___ForLoop: typing_extensions.TypeAlias = ForLoop
647
+
648
+ @typing.final
649
+ class WhileLoop(google.protobuf.message.Message):
650
+ """While loop: while condition: ..."""
651
+
652
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
653
+
654
+ CONDITION_FIELD_NUMBER: builtins.int
655
+ BLOCK_BODY_FIELD_NUMBER: builtins.int
656
+ @property
657
+ def condition(self) -> Global___Expr: ...
658
+ @property
659
+ def block_body(self) -> Global___Block: ...
660
+ def __init__(
661
+ self,
662
+ *,
663
+ condition: Global___Expr | None = ...,
664
+ block_body: Global___Block | None = ...,
665
+ ) -> None: ...
666
+ def HasField(
667
+ self, field_name: typing.Literal["block_body", b"block_body", "condition", b"condition"]
668
+ ) -> builtins.bool: ...
669
+ def ClearField(
670
+ self, field_name: typing.Literal["block_body", b"block_body", "condition", b"condition"]
671
+ ) -> None: ...
672
+
673
+ Global___WhileLoop: typing_extensions.TypeAlias = WhileLoop
674
+
675
+ @typing.final
676
+ class Conditional(google.protobuf.message.Message):
677
+ """Conditional: if/elif/else"""
678
+
679
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
680
+
681
+ IF_BRANCH_FIELD_NUMBER: builtins.int
682
+ ELIF_BRANCHES_FIELD_NUMBER: builtins.int
683
+ ELSE_BRANCH_FIELD_NUMBER: builtins.int
684
+ @property
685
+ def if_branch(self) -> Global___IfBranch: ...
686
+ @property
687
+ def elif_branches(
688
+ self,
689
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
690
+ Global___ElifBranch
691
+ ]: ...
692
+ @property
693
+ def else_branch(self) -> Global___ElseBranch: ...
694
+ def __init__(
695
+ self,
696
+ *,
697
+ if_branch: Global___IfBranch | None = ...,
698
+ elif_branches: collections.abc.Iterable[Global___ElifBranch] | None = ...,
699
+ else_branch: Global___ElseBranch | None = ...,
700
+ ) -> None: ...
701
+ def HasField(
702
+ self,
703
+ field_name: typing.Literal[
704
+ "_else_branch",
705
+ b"_else_branch",
706
+ "else_branch",
707
+ b"else_branch",
708
+ "if_branch",
709
+ b"if_branch",
710
+ ],
711
+ ) -> builtins.bool: ...
712
+ def ClearField(
713
+ self,
714
+ field_name: typing.Literal[
715
+ "_else_branch",
716
+ b"_else_branch",
717
+ "elif_branches",
718
+ b"elif_branches",
719
+ "else_branch",
720
+ b"else_branch",
721
+ "if_branch",
722
+ b"if_branch",
723
+ ],
724
+ ) -> None: ...
725
+ def WhichOneof(
726
+ self, oneof_group: typing.Literal["_else_branch", b"_else_branch"]
727
+ ) -> typing.Literal["else_branch"] | None: ...
728
+
729
+ Global___Conditional: typing_extensions.TypeAlias = Conditional
730
+
731
+ @typing.final
732
+ class IfBranch(google.protobuf.message.Message):
733
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
734
+
735
+ CONDITION_FIELD_NUMBER: builtins.int
736
+ SPAN_FIELD_NUMBER: builtins.int
737
+ BLOCK_BODY_FIELD_NUMBER: builtins.int
738
+ @property
739
+ def condition(self) -> Global___Expr: ...
740
+ @property
741
+ def span(self) -> Global___Span: ...
742
+ @property
743
+ def block_body(self) -> Global___Block: ...
744
+ def __init__(
745
+ self,
746
+ *,
747
+ condition: Global___Expr | None = ...,
748
+ span: Global___Span | None = ...,
749
+ block_body: Global___Block | None = ...,
750
+ ) -> None: ...
751
+ def HasField(
752
+ self,
753
+ field_name: typing.Literal[
754
+ "block_body", b"block_body", "condition", b"condition", "span", b"span"
755
+ ],
756
+ ) -> builtins.bool: ...
757
+ def ClearField(
758
+ self,
759
+ field_name: typing.Literal[
760
+ "block_body", b"block_body", "condition", b"condition", "span", b"span"
761
+ ],
762
+ ) -> None: ...
763
+
764
+ Global___IfBranch: typing_extensions.TypeAlias = IfBranch
765
+
766
+ @typing.final
767
+ class ElifBranch(google.protobuf.message.Message):
768
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
769
+
770
+ CONDITION_FIELD_NUMBER: builtins.int
771
+ SPAN_FIELD_NUMBER: builtins.int
772
+ BLOCK_BODY_FIELD_NUMBER: builtins.int
773
+ @property
774
+ def condition(self) -> Global___Expr: ...
775
+ @property
776
+ def span(self) -> Global___Span: ...
777
+ @property
778
+ def block_body(self) -> Global___Block: ...
779
+ def __init__(
780
+ self,
781
+ *,
782
+ condition: Global___Expr | None = ...,
783
+ span: Global___Span | None = ...,
784
+ block_body: Global___Block | None = ...,
785
+ ) -> None: ...
786
+ def HasField(
787
+ self,
788
+ field_name: typing.Literal[
789
+ "block_body", b"block_body", "condition", b"condition", "span", b"span"
790
+ ],
791
+ ) -> builtins.bool: ...
792
+ def ClearField(
793
+ self,
794
+ field_name: typing.Literal[
795
+ "block_body", b"block_body", "condition", b"condition", "span", b"span"
796
+ ],
797
+ ) -> None: ...
798
+
799
+ Global___ElifBranch: typing_extensions.TypeAlias = ElifBranch
800
+
801
+ @typing.final
802
+ class ElseBranch(google.protobuf.message.Message):
803
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
804
+
805
+ SPAN_FIELD_NUMBER: builtins.int
806
+ BLOCK_BODY_FIELD_NUMBER: builtins.int
807
+ @property
808
+ def span(self) -> Global___Span: ...
809
+ @property
810
+ def block_body(self) -> Global___Block: ...
811
+ def __init__(
812
+ self,
813
+ *,
814
+ span: Global___Span | None = ...,
815
+ block_body: Global___Block | None = ...,
816
+ ) -> None: ...
817
+ def HasField(
818
+ self, field_name: typing.Literal["block_body", b"block_body", "span", b"span"]
819
+ ) -> builtins.bool: ...
820
+ def ClearField(
821
+ self, field_name: typing.Literal["block_body", b"block_body", "span", b"span"]
822
+ ) -> None: ...
823
+
824
+ Global___ElseBranch: typing_extensions.TypeAlias = ElseBranch
825
+
826
+ @typing.final
827
+ class TryExcept(google.protobuf.message.Message):
828
+ """Try/except block"""
829
+
830
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
831
+
832
+ HANDLERS_FIELD_NUMBER: builtins.int
833
+ TRY_BLOCK_FIELD_NUMBER: builtins.int
834
+ @property
835
+ def handlers(
836
+ self,
837
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
838
+ Global___ExceptHandler
839
+ ]: ...
840
+ @property
841
+ def try_block(self) -> Global___Block: ...
842
+ def __init__(
843
+ self,
844
+ *,
845
+ handlers: collections.abc.Iterable[Global___ExceptHandler] | None = ...,
846
+ try_block: Global___Block | None = ...,
847
+ ) -> None: ...
848
+ def HasField(self, field_name: typing.Literal["try_block", b"try_block"]) -> builtins.bool: ...
849
+ def ClearField(
850
+ self, field_name: typing.Literal["handlers", b"handlers", "try_block", b"try_block"]
851
+ ) -> None: ...
852
+
853
+ Global___TryExcept: typing_extensions.TypeAlias = TryExcept
854
+
855
+ @typing.final
856
+ class ExceptHandler(google.protobuf.message.Message):
857
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
858
+
859
+ EXCEPTION_TYPES_FIELD_NUMBER: builtins.int
860
+ SPAN_FIELD_NUMBER: builtins.int
861
+ BLOCK_BODY_FIELD_NUMBER: builtins.int
862
+ EXCEPTION_VAR_FIELD_NUMBER: builtins.int
863
+ exception_var: builtins.str
864
+ """Variable name for "except ... as var" """
865
+ @property
866
+ def exception_types(
867
+ self,
868
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
869
+ """Empty = catch all"""
870
+
871
+ @property
872
+ def span(self) -> Global___Span: ...
873
+ @property
874
+ def block_body(self) -> Global___Block: ...
875
+ def __init__(
876
+ self,
877
+ *,
878
+ exception_types: collections.abc.Iterable[builtins.str] | None = ...,
879
+ span: Global___Span | None = ...,
880
+ block_body: Global___Block | None = ...,
881
+ exception_var: builtins.str | None = ...,
882
+ ) -> None: ...
883
+ def HasField(
884
+ self,
885
+ field_name: typing.Literal[
886
+ "_exception_var",
887
+ b"_exception_var",
888
+ "block_body",
889
+ b"block_body",
890
+ "exception_var",
891
+ b"exception_var",
892
+ "span",
893
+ b"span",
894
+ ],
895
+ ) -> builtins.bool: ...
896
+ def ClearField(
897
+ self,
898
+ field_name: typing.Literal[
899
+ "_exception_var",
900
+ b"_exception_var",
901
+ "block_body",
902
+ b"block_body",
903
+ "exception_types",
904
+ b"exception_types",
905
+ "exception_var",
906
+ b"exception_var",
907
+ "span",
908
+ b"span",
909
+ ],
910
+ ) -> None: ...
911
+ def WhichOneof(
912
+ self, oneof_group: typing.Literal["_exception_var", b"_exception_var"]
913
+ ) -> typing.Literal["exception_var"] | None: ...
914
+
915
+ Global___ExceptHandler: typing_extensions.TypeAlias = ExceptHandler
916
+
917
+ @typing.final
918
+ class ReturnStmt(google.protobuf.message.Message):
919
+ """Return statement"""
920
+
921
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
922
+
923
+ VALUE_FIELD_NUMBER: builtins.int
924
+ @property
925
+ def value(self) -> Global___Expr: ...
926
+ def __init__(
927
+ self,
928
+ *,
929
+ value: Global___Expr | None = ...,
930
+ ) -> None: ...
931
+ def HasField(
932
+ self, field_name: typing.Literal["_value", b"_value", "value", b"value"]
933
+ ) -> builtins.bool: ...
934
+ def ClearField(
935
+ self, field_name: typing.Literal["_value", b"_value", "value", b"value"]
936
+ ) -> None: ...
937
+ def WhichOneof(
938
+ self, oneof_group: typing.Literal["_value", b"_value"]
939
+ ) -> typing.Literal["value"] | None: ...
940
+
941
+ Global___ReturnStmt: typing_extensions.TypeAlias = ReturnStmt
942
+
943
+ @typing.final
944
+ class ExprStmt(google.protobuf.message.Message):
945
+ """Expression as statement"""
946
+
947
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
948
+
949
+ EXPR_FIELD_NUMBER: builtins.int
950
+ @property
951
+ def expr(self) -> Global___Expr: ...
952
+ def __init__(
953
+ self,
954
+ *,
955
+ expr: Global___Expr | None = ...,
956
+ ) -> None: ...
957
+ def HasField(self, field_name: typing.Literal["expr", b"expr"]) -> builtins.bool: ...
958
+ def ClearField(self, field_name: typing.Literal["expr", b"expr"]) -> None: ...
959
+
960
+ Global___ExprStmt: typing_extensions.TypeAlias = ExprStmt
961
+
962
+ @typing.final
963
+ class Expr(google.protobuf.message.Message):
964
+ """-----------------------------------------------------------------------------
965
+ Expressions
966
+ -----------------------------------------------------------------------------
967
+ """
968
+
969
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
970
+
971
+ LITERAL_FIELD_NUMBER: builtins.int
972
+ VARIABLE_FIELD_NUMBER: builtins.int
973
+ BINARY_OP_FIELD_NUMBER: builtins.int
974
+ UNARY_OP_FIELD_NUMBER: builtins.int
975
+ LIST_FIELD_NUMBER: builtins.int
976
+ DICT_FIELD_NUMBER: builtins.int
977
+ INDEX_FIELD_NUMBER: builtins.int
978
+ DOT_FIELD_NUMBER: builtins.int
979
+ FUNCTION_CALL_FIELD_NUMBER: builtins.int
980
+ ACTION_CALL_FIELD_NUMBER: builtins.int
981
+ PARALLEL_EXPR_FIELD_NUMBER: builtins.int
982
+ SPREAD_EXPR_FIELD_NUMBER: builtins.int
983
+ SPAN_FIELD_NUMBER: builtins.int
984
+ @property
985
+ def literal(self) -> Global___Literal: ...
986
+ @property
987
+ def variable(self) -> Global___Variable: ...
988
+ @property
989
+ def binary_op(self) -> Global___BinaryOp: ...
990
+ @property
991
+ def unary_op(self) -> Global___UnaryOp: ...
992
+ @property
993
+ def list(self) -> Global___ListExpr: ...
994
+ @property
995
+ def dict(self) -> Global___DictExpr: ...
996
+ @property
997
+ def index(self) -> Global___IndexAccess: ...
998
+ @property
999
+ def dot(self) -> Global___DotAccess: ...
1000
+ @property
1001
+ def function_call(self) -> Global___FunctionCall: ...
1002
+ @property
1003
+ def action_call(self) -> Global___ActionCall: ...
1004
+ @property
1005
+ def parallel_expr(self) -> Global___ParallelExpr:
1006
+ """Parallel block as expression"""
1007
+
1008
+ @property
1009
+ def spread_expr(self) -> Global___SpreadExpr:
1010
+ """Spread action as expression"""
1011
+
1012
+ @property
1013
+ def span(self) -> Global___Span: ...
1014
+ def __init__(
1015
+ self,
1016
+ *,
1017
+ literal: Global___Literal | None = ...,
1018
+ variable: Global___Variable | None = ...,
1019
+ binary_op: Global___BinaryOp | None = ...,
1020
+ unary_op: Global___UnaryOp | None = ...,
1021
+ list: Global___ListExpr | None = ...,
1022
+ dict: Global___DictExpr | None = ...,
1023
+ index: Global___IndexAccess | None = ...,
1024
+ dot: Global___DotAccess | None = ...,
1025
+ function_call: Global___FunctionCall | None = ...,
1026
+ action_call: Global___ActionCall | None = ...,
1027
+ parallel_expr: Global___ParallelExpr | None = ...,
1028
+ spread_expr: Global___SpreadExpr | None = ...,
1029
+ span: Global___Span | None = ...,
1030
+ ) -> None: ...
1031
+ def HasField(
1032
+ self,
1033
+ field_name: typing.Literal[
1034
+ "action_call",
1035
+ b"action_call",
1036
+ "binary_op",
1037
+ b"binary_op",
1038
+ "dict",
1039
+ b"dict",
1040
+ "dot",
1041
+ b"dot",
1042
+ "function_call",
1043
+ b"function_call",
1044
+ "index",
1045
+ b"index",
1046
+ "kind",
1047
+ b"kind",
1048
+ "list",
1049
+ b"list",
1050
+ "literal",
1051
+ b"literal",
1052
+ "parallel_expr",
1053
+ b"parallel_expr",
1054
+ "span",
1055
+ b"span",
1056
+ "spread_expr",
1057
+ b"spread_expr",
1058
+ "unary_op",
1059
+ b"unary_op",
1060
+ "variable",
1061
+ b"variable",
1062
+ ],
1063
+ ) -> builtins.bool: ...
1064
+ def ClearField(
1065
+ self,
1066
+ field_name: typing.Literal[
1067
+ "action_call",
1068
+ b"action_call",
1069
+ "binary_op",
1070
+ b"binary_op",
1071
+ "dict",
1072
+ b"dict",
1073
+ "dot",
1074
+ b"dot",
1075
+ "function_call",
1076
+ b"function_call",
1077
+ "index",
1078
+ b"index",
1079
+ "kind",
1080
+ b"kind",
1081
+ "list",
1082
+ b"list",
1083
+ "literal",
1084
+ b"literal",
1085
+ "parallel_expr",
1086
+ b"parallel_expr",
1087
+ "span",
1088
+ b"span",
1089
+ "spread_expr",
1090
+ b"spread_expr",
1091
+ "unary_op",
1092
+ b"unary_op",
1093
+ "variable",
1094
+ b"variable",
1095
+ ],
1096
+ ) -> None: ...
1097
+ def WhichOneof(
1098
+ self, oneof_group: typing.Literal["kind", b"kind"]
1099
+ ) -> (
1100
+ typing.Literal[
1101
+ "literal",
1102
+ "variable",
1103
+ "binary_op",
1104
+ "unary_op",
1105
+ "list",
1106
+ "dict",
1107
+ "index",
1108
+ "dot",
1109
+ "function_call",
1110
+ "action_call",
1111
+ "parallel_expr",
1112
+ "spread_expr",
1113
+ ]
1114
+ | None
1115
+ ): ...
1116
+
1117
+ Global___Expr: typing_extensions.TypeAlias = Expr
1118
+
1119
+ @typing.final
1120
+ class Literal(google.protobuf.message.Message):
1121
+ """Literals: 42, 3.14, "hello", True, False"""
1122
+
1123
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1124
+
1125
+ INT_VALUE_FIELD_NUMBER: builtins.int
1126
+ FLOAT_VALUE_FIELD_NUMBER: builtins.int
1127
+ STRING_VALUE_FIELD_NUMBER: builtins.int
1128
+ BOOL_VALUE_FIELD_NUMBER: builtins.int
1129
+ IS_NONE_FIELD_NUMBER: builtins.int
1130
+ int_value: builtins.int
1131
+ float_value: builtins.float
1132
+ string_value: builtins.str
1133
+ bool_value: builtins.bool
1134
+ is_none: builtins.bool
1135
+ """true if None"""
1136
+ def __init__(
1137
+ self,
1138
+ *,
1139
+ int_value: builtins.int = ...,
1140
+ float_value: builtins.float = ...,
1141
+ string_value: builtins.str = ...,
1142
+ bool_value: builtins.bool = ...,
1143
+ is_none: builtins.bool = ...,
1144
+ ) -> None: ...
1145
+ def HasField(
1146
+ self,
1147
+ field_name: typing.Literal[
1148
+ "bool_value",
1149
+ b"bool_value",
1150
+ "float_value",
1151
+ b"float_value",
1152
+ "int_value",
1153
+ b"int_value",
1154
+ "is_none",
1155
+ b"is_none",
1156
+ "string_value",
1157
+ b"string_value",
1158
+ "value",
1159
+ b"value",
1160
+ ],
1161
+ ) -> builtins.bool: ...
1162
+ def ClearField(
1163
+ self,
1164
+ field_name: typing.Literal[
1165
+ "bool_value",
1166
+ b"bool_value",
1167
+ "float_value",
1168
+ b"float_value",
1169
+ "int_value",
1170
+ b"int_value",
1171
+ "is_none",
1172
+ b"is_none",
1173
+ "string_value",
1174
+ b"string_value",
1175
+ "value",
1176
+ b"value",
1177
+ ],
1178
+ ) -> None: ...
1179
+ def WhichOneof(
1180
+ self, oneof_group: typing.Literal["value", b"value"]
1181
+ ) -> (
1182
+ typing.Literal["int_value", "float_value", "string_value", "bool_value", "is_none"] | None
1183
+ ): ...
1184
+
1185
+ Global___Literal: typing_extensions.TypeAlias = Literal
1186
+
1187
+ @typing.final
1188
+ class Variable(google.protobuf.message.Message):
1189
+ """Variable reference: foo"""
1190
+
1191
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1192
+
1193
+ NAME_FIELD_NUMBER: builtins.int
1194
+ name: builtins.str
1195
+ def __init__(
1196
+ self,
1197
+ *,
1198
+ name: builtins.str = ...,
1199
+ ) -> None: ...
1200
+ def ClearField(self, field_name: typing.Literal["name", b"name"]) -> None: ...
1201
+
1202
+ Global___Variable: typing_extensions.TypeAlias = Variable
1203
+
1204
+ @typing.final
1205
+ class BinaryOp(google.protobuf.message.Message):
1206
+ """Binary operation: a + b, x and y, etc."""
1207
+
1208
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1209
+
1210
+ LEFT_FIELD_NUMBER: builtins.int
1211
+ OP_FIELD_NUMBER: builtins.int
1212
+ RIGHT_FIELD_NUMBER: builtins.int
1213
+ op: Global___BinaryOperator.ValueType
1214
+ @property
1215
+ def left(self) -> Global___Expr: ...
1216
+ @property
1217
+ def right(self) -> Global___Expr: ...
1218
+ def __init__(
1219
+ self,
1220
+ *,
1221
+ left: Global___Expr | None = ...,
1222
+ op: Global___BinaryOperator.ValueType = ...,
1223
+ right: Global___Expr | None = ...,
1224
+ ) -> None: ...
1225
+ def HasField(
1226
+ self, field_name: typing.Literal["left", b"left", "right", b"right"]
1227
+ ) -> builtins.bool: ...
1228
+ def ClearField(
1229
+ self, field_name: typing.Literal["left", b"left", "op", b"op", "right", b"right"]
1230
+ ) -> None: ...
1231
+
1232
+ Global___BinaryOp: typing_extensions.TypeAlias = BinaryOp
1233
+
1234
+ @typing.final
1235
+ class UnaryOp(google.protobuf.message.Message):
1236
+ """Unary operation: -x, not x"""
1237
+
1238
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1239
+
1240
+ OP_FIELD_NUMBER: builtins.int
1241
+ OPERAND_FIELD_NUMBER: builtins.int
1242
+ op: Global___UnaryOperator.ValueType
1243
+ @property
1244
+ def operand(self) -> Global___Expr: ...
1245
+ def __init__(
1246
+ self,
1247
+ *,
1248
+ op: Global___UnaryOperator.ValueType = ...,
1249
+ operand: Global___Expr | None = ...,
1250
+ ) -> None: ...
1251
+ def HasField(self, field_name: typing.Literal["operand", b"operand"]) -> builtins.bool: ...
1252
+ def ClearField(
1253
+ self, field_name: typing.Literal["op", b"op", "operand", b"operand"]
1254
+ ) -> None: ...
1255
+
1256
+ Global___UnaryOp: typing_extensions.TypeAlias = UnaryOp
1257
+
1258
+ @typing.final
1259
+ class ListExpr(google.protobuf.message.Message):
1260
+ """List literal: [1, 2, 3]"""
1261
+
1262
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1263
+
1264
+ ELEMENTS_FIELD_NUMBER: builtins.int
1265
+ @property
1266
+ def elements(
1267
+ self,
1268
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expr]: ...
1269
+ def __init__(
1270
+ self,
1271
+ *,
1272
+ elements: collections.abc.Iterable[Global___Expr] | None = ...,
1273
+ ) -> None: ...
1274
+ def ClearField(self, field_name: typing.Literal["elements", b"elements"]) -> None: ...
1275
+
1276
+ Global___ListExpr: typing_extensions.TypeAlias = ListExpr
1277
+
1278
+ @typing.final
1279
+ class DictExpr(google.protobuf.message.Message):
1280
+ """Dict literal: {"a": 1, "b": 2}"""
1281
+
1282
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1283
+
1284
+ ENTRIES_FIELD_NUMBER: builtins.int
1285
+ @property
1286
+ def entries(
1287
+ self,
1288
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
1289
+ Global___DictEntry
1290
+ ]: ...
1291
+ def __init__(
1292
+ self,
1293
+ *,
1294
+ entries: collections.abc.Iterable[Global___DictEntry] | None = ...,
1295
+ ) -> None: ...
1296
+ def ClearField(self, field_name: typing.Literal["entries", b"entries"]) -> None: ...
1297
+
1298
+ Global___DictExpr: typing_extensions.TypeAlias = DictExpr
1299
+
1300
+ @typing.final
1301
+ class DictEntry(google.protobuf.message.Message):
1302
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1303
+
1304
+ KEY_FIELD_NUMBER: builtins.int
1305
+ VALUE_FIELD_NUMBER: builtins.int
1306
+ @property
1307
+ def key(self) -> Global___Expr: ...
1308
+ @property
1309
+ def value(self) -> Global___Expr: ...
1310
+ def __init__(
1311
+ self,
1312
+ *,
1313
+ key: Global___Expr | None = ...,
1314
+ value: Global___Expr | None = ...,
1315
+ ) -> None: ...
1316
+ def HasField(
1317
+ self, field_name: typing.Literal["key", b"key", "value", b"value"]
1318
+ ) -> builtins.bool: ...
1319
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
1320
+
1321
+ Global___DictEntry: typing_extensions.TypeAlias = DictEntry
1322
+
1323
+ @typing.final
1324
+ class IndexAccess(google.protobuf.message.Message):
1325
+ """Index access: items[0]"""
1326
+
1327
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1328
+
1329
+ OBJECT_FIELD_NUMBER: builtins.int
1330
+ INDEX_FIELD_NUMBER: builtins.int
1331
+ @property
1332
+ def object(self) -> Global___Expr: ...
1333
+ @property
1334
+ def index(self) -> Global___Expr: ...
1335
+ def __init__(
1336
+ self,
1337
+ *,
1338
+ object: Global___Expr | None = ...,
1339
+ index: Global___Expr | None = ...,
1340
+ ) -> None: ...
1341
+ def HasField(
1342
+ self, field_name: typing.Literal["index", b"index", "object", b"object"]
1343
+ ) -> builtins.bool: ...
1344
+ def ClearField(
1345
+ self, field_name: typing.Literal["index", b"index", "object", b"object"]
1346
+ ) -> None: ...
1347
+
1348
+ Global___IndexAccess: typing_extensions.TypeAlias = IndexAccess
1349
+
1350
+ @typing.final
1351
+ class DotAccess(google.protobuf.message.Message):
1352
+ """Dot access: obj.attr"""
1353
+
1354
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1355
+
1356
+ OBJECT_FIELD_NUMBER: builtins.int
1357
+ ATTRIBUTE_FIELD_NUMBER: builtins.int
1358
+ attribute: builtins.str
1359
+ @property
1360
+ def object(self) -> Global___Expr: ...
1361
+ def __init__(
1362
+ self,
1363
+ *,
1364
+ object: Global___Expr | None = ...,
1365
+ attribute: builtins.str = ...,
1366
+ ) -> None: ...
1367
+ def HasField(self, field_name: typing.Literal["object", b"object"]) -> builtins.bool: ...
1368
+ def ClearField(
1369
+ self, field_name: typing.Literal["attribute", b"attribute", "object", b"object"]
1370
+ ) -> None: ...
1371
+
1372
+ Global___DotAccess: typing_extensions.TypeAlias = DotAccess
1373
+
1374
+ @typing.final
1375
+ class FunctionCall(google.protobuf.message.Message):
1376
+ """Function call: range(10), len(items)
1377
+ Built-in functions can use positional args, user functions use kwargs
1378
+ """
1379
+
1380
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1381
+
1382
+ NAME_FIELD_NUMBER: builtins.int
1383
+ ARGS_FIELD_NUMBER: builtins.int
1384
+ KWARGS_FIELD_NUMBER: builtins.int
1385
+ GLOBAL_FUNCTION_FIELD_NUMBER: builtins.int
1386
+ name: builtins.str
1387
+ global_function: Global___GlobalFunction.ValueType
1388
+ """Global function identifier (if applicable)"""
1389
+ @property
1390
+ def args(
1391
+ self,
1392
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Expr]:
1393
+ """Positional arguments (for built-ins)"""
1394
+
1395
+ @property
1396
+ def kwargs(
1397
+ self,
1398
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Kwarg]:
1399
+ """Keyword arguments"""
1400
+
1401
+ def __init__(
1402
+ self,
1403
+ *,
1404
+ name: builtins.str = ...,
1405
+ args: collections.abc.Iterable[Global___Expr] | None = ...,
1406
+ kwargs: collections.abc.Iterable[Global___Kwarg] | None = ...,
1407
+ global_function: Global___GlobalFunction.ValueType = ...,
1408
+ ) -> None: ...
1409
+ def ClearField(
1410
+ self,
1411
+ field_name: typing.Literal[
1412
+ "args",
1413
+ b"args",
1414
+ "global_function",
1415
+ b"global_function",
1416
+ "kwargs",
1417
+ b"kwargs",
1418
+ "name",
1419
+ b"name",
1420
+ ],
1421
+ ) -> None: ...
1422
+
1423
+ Global___FunctionCall: typing_extensions.TypeAlias = FunctionCall
1424
+
1425
+ @typing.final
1426
+ class Kwarg(google.protobuf.message.Message):
1427
+ """Keyword argument: name=value"""
1428
+
1429
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1430
+
1431
+ NAME_FIELD_NUMBER: builtins.int
1432
+ VALUE_FIELD_NUMBER: builtins.int
1433
+ name: builtins.str
1434
+ @property
1435
+ def value(self) -> Global___Expr: ...
1436
+ def __init__(
1437
+ self,
1438
+ *,
1439
+ name: builtins.str = ...,
1440
+ value: Global___Expr | None = ...,
1441
+ ) -> None: ...
1442
+ def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
1443
+ def ClearField(
1444
+ self, field_name: typing.Literal["name", b"name", "value", b"value"]
1445
+ ) -> None: ...
1446
+
1447
+ Global___Kwarg: typing_extensions.TypeAlias = Kwarg
1448
+
1449
+ @typing.final
1450
+ class ParallelExpr(google.protobuf.message.Message):
1451
+ """Parallel expression: concurrent execution of multiple calls, returns list
1452
+ Used in assignments: a, b = parallel: @x() @y()
1453
+ """
1454
+
1455
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1456
+
1457
+ CALLS_FIELD_NUMBER: builtins.int
1458
+ @property
1459
+ def calls(
1460
+ self,
1461
+ ) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[Global___Call]:
1462
+ """Actions or function calls to run in parallel"""
1463
+
1464
+ def __init__(
1465
+ self,
1466
+ *,
1467
+ calls: collections.abc.Iterable[Global___Call] | None = ...,
1468
+ ) -> None: ...
1469
+ def ClearField(self, field_name: typing.Literal["calls", b"calls"]) -> None: ...
1470
+
1471
+ Global___ParallelExpr: typing_extensions.TypeAlias = ParallelExpr
1472
+
1473
+ @typing.final
1474
+ class SpreadExpr(google.protobuf.message.Message):
1475
+ """Spread expression: parallel execution over a collection, returns list
1476
+ Used in assignments: results = spread items:item -> @action(item=item)
1477
+ """
1478
+
1479
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1480
+
1481
+ COLLECTION_FIELD_NUMBER: builtins.int
1482
+ LOOP_VAR_FIELD_NUMBER: builtins.int
1483
+ ACTION_FIELD_NUMBER: builtins.int
1484
+ loop_var: builtins.str
1485
+ """Variable name for each item"""
1486
+ @property
1487
+ def collection(self) -> Global___Expr:
1488
+ """The collection to iterate"""
1489
+
1490
+ @property
1491
+ def action(self) -> Global___ActionCall:
1492
+ """The action to call per item"""
1493
+
1494
+ def __init__(
1495
+ self,
1496
+ *,
1497
+ collection: Global___Expr | None = ...,
1498
+ loop_var: builtins.str = ...,
1499
+ action: Global___ActionCall | None = ...,
1500
+ ) -> None: ...
1501
+ def HasField(
1502
+ self, field_name: typing.Literal["action", b"action", "collection", b"collection"]
1503
+ ) -> builtins.bool: ...
1504
+ def ClearField(
1505
+ self,
1506
+ field_name: typing.Literal[
1507
+ "action", b"action", "collection", b"collection", "loop_var", b"loop_var"
1508
+ ],
1509
+ ) -> None: ...
1510
+
1511
+ Global___SpreadExpr: typing_extensions.TypeAlias = SpreadExpr
1512
+
1513
+ @typing.final
1514
+ class PolicyBracket(google.protobuf.message.Message):
1515
+ """-----------------------------------------------------------------------------
1516
+ Policies (for actions)
1517
+ -----------------------------------------------------------------------------
1518
+
1519
+ Policy bracket on an action call
1520
+ """
1521
+
1522
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1523
+
1524
+ RETRY_FIELD_NUMBER: builtins.int
1525
+ TIMEOUT_FIELD_NUMBER: builtins.int
1526
+ @property
1527
+ def retry(self) -> Global___RetryPolicy: ...
1528
+ @property
1529
+ def timeout(self) -> Global___TimeoutPolicy: ...
1530
+ def __init__(
1531
+ self,
1532
+ *,
1533
+ retry: Global___RetryPolicy | None = ...,
1534
+ timeout: Global___TimeoutPolicy | None = ...,
1535
+ ) -> None: ...
1536
+ def HasField(
1537
+ self, field_name: typing.Literal["kind", b"kind", "retry", b"retry", "timeout", b"timeout"]
1538
+ ) -> builtins.bool: ...
1539
+ def ClearField(
1540
+ self, field_name: typing.Literal["kind", b"kind", "retry", b"retry", "timeout", b"timeout"]
1541
+ ) -> None: ...
1542
+ def WhichOneof(
1543
+ self, oneof_group: typing.Literal["kind", b"kind"]
1544
+ ) -> typing.Literal["retry", "timeout"] | None: ...
1545
+
1546
+ Global___PolicyBracket: typing_extensions.TypeAlias = PolicyBracket
1547
+
1548
+ @typing.final
1549
+ class RetryPolicy(google.protobuf.message.Message):
1550
+ """Retry policy: [ExceptionType -> retry: 3, backoff: 60s]"""
1551
+
1552
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1553
+
1554
+ EXCEPTION_TYPES_FIELD_NUMBER: builtins.int
1555
+ MAX_RETRIES_FIELD_NUMBER: builtins.int
1556
+ BACKOFF_FIELD_NUMBER: builtins.int
1557
+ max_retries: builtins.int
1558
+ @property
1559
+ def exception_types(
1560
+ self,
1561
+ ) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
1562
+ """Empty = catch all"""
1563
+
1564
+ @property
1565
+ def backoff(self) -> Global___Duration: ...
1566
+ def __init__(
1567
+ self,
1568
+ *,
1569
+ exception_types: collections.abc.Iterable[builtins.str] | None = ...,
1570
+ max_retries: builtins.int = ...,
1571
+ backoff: Global___Duration | None = ...,
1572
+ ) -> None: ...
1573
+ def HasField(self, field_name: typing.Literal["backoff", b"backoff"]) -> builtins.bool: ...
1574
+ def ClearField(
1575
+ self,
1576
+ field_name: typing.Literal[
1577
+ "backoff",
1578
+ b"backoff",
1579
+ "exception_types",
1580
+ b"exception_types",
1581
+ "max_retries",
1582
+ b"max_retries",
1583
+ ],
1584
+ ) -> None: ...
1585
+
1586
+ Global___RetryPolicy: typing_extensions.TypeAlias = RetryPolicy
1587
+
1588
+ @typing.final
1589
+ class TimeoutPolicy(google.protobuf.message.Message):
1590
+ """Timeout policy: [timeout: 2m]"""
1591
+
1592
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1593
+
1594
+ TIMEOUT_FIELD_NUMBER: builtins.int
1595
+ @property
1596
+ def timeout(self) -> Global___Duration: ...
1597
+ def __init__(
1598
+ self,
1599
+ *,
1600
+ timeout: Global___Duration | None = ...,
1601
+ ) -> None: ...
1602
+ def HasField(self, field_name: typing.Literal["timeout", b"timeout"]) -> builtins.bool: ...
1603
+ def ClearField(self, field_name: typing.Literal["timeout", b"timeout"]) -> None: ...
1604
+
1605
+ Global___TimeoutPolicy: typing_extensions.TypeAlias = TimeoutPolicy
1606
+
1607
+ @typing.final
1608
+ class Duration(google.protobuf.message.Message):
1609
+ """Duration value (e.g., 30s, 2m, 1h)"""
1610
+
1611
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1612
+
1613
+ SECONDS_FIELD_NUMBER: builtins.int
1614
+ seconds: builtins.int
1615
+ def __init__(
1616
+ self,
1617
+ *,
1618
+ seconds: builtins.int = ...,
1619
+ ) -> None: ...
1620
+ def ClearField(self, field_name: typing.Literal["seconds", b"seconds"]) -> None: ...
1621
+
1622
+ Global___Duration: typing_extensions.TypeAlias = Duration
1623
+
1624
+ @typing.final
1625
+ class Span(google.protobuf.message.Message):
1626
+ """-----------------------------------------------------------------------------
1627
+ Source Location
1628
+ -----------------------------------------------------------------------------
1629
+
1630
+ Source span for error reporting
1631
+ """
1632
+
1633
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
1634
+
1635
+ START_LINE_FIELD_NUMBER: builtins.int
1636
+ START_COL_FIELD_NUMBER: builtins.int
1637
+ END_LINE_FIELD_NUMBER: builtins.int
1638
+ END_COL_FIELD_NUMBER: builtins.int
1639
+ start_line: builtins.int
1640
+ start_col: builtins.int
1641
+ end_line: builtins.int
1642
+ end_col: builtins.int
1643
+ def __init__(
1644
+ self,
1645
+ *,
1646
+ start_line: builtins.int = ...,
1647
+ start_col: builtins.int = ...,
1648
+ end_line: builtins.int = ...,
1649
+ end_col: builtins.int = ...,
1650
+ ) -> None: ...
1651
+ def ClearField(
1652
+ self,
1653
+ field_name: typing.Literal[
1654
+ "end_col",
1655
+ b"end_col",
1656
+ "end_line",
1657
+ b"end_line",
1658
+ "start_col",
1659
+ b"start_col",
1660
+ "start_line",
1661
+ b"start_line",
1662
+ ],
1663
+ ) -> None: ...
1664
+
1665
+ Global___Span: typing_extensions.TypeAlias = Span