@@ -51,7 +51,7 @@ def __str__(self):
51
51
# class Symbol(eve.GenericNode, LocatedNode, Generic[SymbolT]):
52
52
#
53
53
class Symbol (LocatedNode , Generic [SymbolT ]):
54
- id : Coerced [SymbolName ] # shadowing a python builtin
54
+ id : Coerced [SymbolName ]
55
55
type : Union [SymbolT , ts .DeferredType ] # A003
56
56
namespace : dialect_ast_enums .Namespace = dialect_ast_enums .Namespace (
57
57
dialect_ast_enums .Namespace .LOCAL
@@ -79,7 +79,7 @@ class Expr(LocatedNode):
79
79
80
80
81
81
class Name (Expr ):
82
- id : Coerced [SymbolRef ] # shadowing a python builtin
82
+ id : Coerced [SymbolRef ]
83
83
84
84
85
85
class Constant (Expr ):
@@ -157,7 +157,7 @@ class Stmt(LocatedNode): ...
157
157
158
158
159
159
class Starred (Expr ):
160
- id : Union [FieldSymbol , TupleSymbol , ScalarSymbol ] # shadowing a python builtin
160
+ id : Union [FieldSymbol , TupleSymbol , ScalarSymbol ]
161
161
162
162
163
163
class Assign (Stmt ):
@@ -198,23 +198,23 @@ def _collect_common_symbols(cls: type[IfStmt], instance: IfStmt) -> None:
198
198
199
199
200
200
class FunctionDefinition (LocatedNode , SymbolTableTrait ):
201
- id : Coerced [SymbolName ] # shadowing a python builtin
201
+ id : Coerced [SymbolName ]
202
202
params : list [DataSymbol ]
203
203
body : BlockStmt
204
204
closure_vars : list [Symbol ]
205
205
type : Union [ts .FunctionType , ts .DeferredType ] = ts .DeferredType (constraint = ts .FunctionType )
206
206
207
207
208
208
class FieldOperator (LocatedNode , SymbolTableTrait ):
209
- id : Coerced [SymbolName ] # shadowing a python builtin
209
+ id : Coerced [SymbolName ]
210
210
definition : FunctionDefinition
211
211
type : Union [ts_ffront .FieldOperatorType , ts .DeferredType ] = ts .DeferredType (
212
212
constraint = ts_ffront .FieldOperatorType
213
213
)
214
214
215
215
216
216
class ScanOperator (LocatedNode , SymbolTableTrait ):
217
- id : Coerced [SymbolName ] # shadowing a python builtin
217
+ id : Coerced [SymbolName ]
218
218
axis : Constant
219
219
forward : Constant
220
220
init : Constant
0 commit comments