File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -1277,7 +1277,7 @@ class Function:
1277
1277
locals : List [Var ]
1278
1278
complete : bool
1279
1279
is_method : bool
1280
- _inline_hint : bool | Literal ['always' , 'never' ]
1280
+ inline_hint : bool | Literal ['always' , 'never' ]
1281
1281
returning_ref : bool
1282
1282
1283
1283
def __init__ (
@@ -1296,11 +1296,12 @@ def __init__(
1296
1296
self .locals = []
1297
1297
self .complete = False
1298
1298
self .is_method = is_method
1299
- self ._inline_hint = False
1299
+ self .inline_hint = False
1300
1300
self .returning_ref = returning_ref
1301
1301
1302
- def inline_hint (self ) -> bool | Literal ['always' , 'never' ]:
1303
- return self ._inline_hint
1302
+
1303
+
1304
+
1304
1305
1305
1306
1306
1307
def match_template_args (
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ def range(start: T, end: T) -> List[T]: ...
135
135
def range (start : T , end : T , step : T ) -> List [T ]: ...
136
136
137
137
138
- def range (* args ):
138
+ def range (* args , ** kwargs ): # type: ignore
139
139
raise NotImplementedError (
140
140
"range should not be called in host-side Python code. " )
141
141
@@ -308,7 +308,7 @@ def write(self, value: T) -> None:
308
308
309
309
def __add__ (self , offset : i32 | i64 | u32 | u64 ) -> 'Pointer[T]' :
310
310
return intrinsic ("pointer.add" , Pointer [T ], self , offset )
311
-
311
+
312
312
def __sub__ (self , offset : i32 | i64 | u32 | u64 ) -> 'Pointer[T]' :
313
313
return intrinsic ("pointer.sub" , Pointer [T ], self , offset )
314
314
Original file line number Diff line number Diff line change @@ -95,9 +95,9 @@ def from_ast(ast: ast.AST) -> Optional["Span"]:
95
95
return None
96
96
if not hasattr (ast , "col_offset" ):
97
97
return None
98
- if not hasattr (ast , "end_lineno" ) or ast . end_lineno is None :
98
+ if not hasattr (ast , "end_lineno" ) or getattr ( ast , " end_lineno" ) is None :
99
99
return None
100
- if not hasattr (ast , "end_col_offset" ) or ast . end_col_offset is None :
100
+ if not hasattr (ast , "end_col_offset" ) or getattr ( ast , " end_col_offset" ) is None :
101
101
return None
102
102
file = None
103
103
if hasattr (ast , "source_file" ):
You can’t perform that action at this time.
0 commit comments