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