File tree Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Expand file tree Collapse file tree 3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,18 @@ def ndarray_func(x):
17
17
def test (x ):
18
18
# type: (np.ndarray) -> np.ndarray
19
19
return x
20
+
21
+ def test (): # type: ignore
22
+ # Comment
23
+ ...
24
+
25
+ def main ():
26
+
27
+ # type: ignore
28
+ pass
29
+
30
+ x (x , # type: ignore
31
+ y )
32
+
33
+ from sympy .simplify import (collect , powsimp , # type: ignore
34
+ separatevars , simplify )
Original file line number Diff line number Diff line change 2
2
"basename" : " ast_new-type_comment1-710ea6c" ,
3
3
"cmd" : " lpython --show-ast --new-parser --no-color {infile} -o {outfile}" ,
4
4
"infile" : " tests/parser/type_comment1.py" ,
5
- "infile_hash" : " 9c79bc041758b5401f4431a53b6b333999a4e7dfe9dfabac13d83178 " ,
5
+ "infile_hash" : " c4c669232bd7137cb068b0d6aaa9f4a998a0d6244b4da03ce174ea10 " ,
6
6
"outfile" : null ,
7
7
"outfile_hash" : null ,
8
8
"stdout" : " ast_new-type_comment1-710ea6c.stdout" ,
9
- "stdout_hash" : " c7019449158ebe30677a0808ad2fd8f93aebd2eee6cd90914c44cd98 " ,
9
+ "stdout_hash" : " 9e22c0795da6142ec862c25e6b57dd3446f11cb35082caf318ba8f2c " ,
10
10
"stderr" : null ,
11
11
"stderr_hash" : null ,
12
12
"returncode" : 0
Original file line number Diff line number Diff line change 1
- (Module [(Import [(pytest ())]) (FunctionDef ndarray_func ([] [(x () ())] [] [] [] [] []) [(Return (Name x Load))] [] () "(np.ndarray) -> np.ndarray") (FunctionDef test ([] [(x () ())] [] [] [] [] []) [(Return (Name x Load))] [(Name decorator1 Load) (Name decorator2 Load) (Name decorator3 Load)] () "(np.ndarray) -> np.ndarray")] [(TypeIgnore 0 "") (TypeIgnore 0 "") (TypeIgnore 0 "")])
1
+ (Module [(Import [(pytest ())]) (FunctionDef ndarray_func ([] [(x () ())] [] [] [] [] []) [(Return (Name x Load))] [] () "(np.ndarray) -> np.ndarray") (FunctionDef test ([] [(x () ())] [] [] [] [] []) [(Return (Name x Load))] [(Name decorator1 Load) (Name decorator2 Load) (Name decorator3 Load)] () "(np.ndarray) -> np.ndarray") (FunctionDef test ([ ] [] [] [] [] [] []) [(Expr (ConstantEllipsis ()))] [] () ()) (FunctionDef main ([] [] [] [] [] [] []) [(Pass)] [] () ()) (Expr (Call (Name x Load) [(Name x Load) (Name y Load)] [])) (ImportFrom sympy.simplify [(collect ()) (powsimp ()) (separatevars ()) (simplify ())] 0)] [(TypeIgnore 0 "") (TypeIgnore 0 "") (TypeIgnore 0 "") (TypeIgnore 0 "") (TypeIgnore 0 "") (TypeIgnore 0 "") (TypeIgnore 0 "")])
You can’t perform that action at this time.
0 commit comments