File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
python/ql/test/library-tests/frameworks/lxml Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -138,15 +138,15 @@ def func(tree_arg: ET.ElementTree):
138
138
def func2 (x ):
139
139
return x
140
140
141
- def func3 (x ) -> ET .Element :
141
+ def func3 (x ) -> ET .ElementTree :
142
142
return x
143
143
144
144
ensure_tainted (
145
145
func2 (tree ), # $ tainted
146
- func2 (tree ).text , # $ MISSING:tainted - type tracking not tracked through flow preserving calls
147
- func3 (tree ).text , # $ MISSING:tainted - this includes if there is a type hint annotation on the return
146
+ func2 (tree ).getroot (). text , # $ MISSING:tainted - type tracking not tracked through flow preserving calls
147
+ func3 (tree ).getroot (). text , # $ MISSING:tainted - this includes if there is a type hint annotation on the return
148
148
typing .cast (ET .ElementTree , tree ), # $ tainted
149
- typing .cast (ET .ElementTree , tree ).text , # $ MISSING:tainted - this includes for flow summary models
149
+ typing .cast (ET .ElementTree , tree ).getroot (). text , # $ MISSING:tainted - this includes for flow summary models
150
150
151
151
)
152
152
You can’t perform that action at this time.
0 commit comments