File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed
python/ql/test/library-tests/PointsTo/api Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ | file://:0:0:0:0 | builtin-class bool | bool |
2+ | file://:0:0:0:0 | builtin-class classmethod | classmethod |
3+ | file://:0:0:0:0 | builtin-class float | float |
4+ | file://:0:0:0:0 | builtin-class int | int |
5+ | file://:0:0:0:0 | builtin-class object | object |
Original file line number Diff line number Diff line change 1+ import python
2+
3+ from ClassValue cls , string description
4+ where
5+ cls = ClassValue:: bool ( ) and description = "bool"
6+ or
7+ cls = ClassValue:: int_ ( ) and description = "int"
8+ or
9+ cls = ClassValue:: float_ ( ) and description = "float"
10+ or
11+ cls = ClassValue:: classmethod ( ) and description = "classmethod"
12+ or
13+ cls = ClassValue:: bool ( ) .getMro ( ) .getItem ( 2 ) and description = "object"
14+
15+ select cls , description
Original file line number Diff line number Diff line change 1+ | file://:0:0:0:0 | builtin-class ValueError | ValueError |
2+ | file://:0:0:0:0 | builtin-class bool | bool |
3+ | file://:0:0:0:0 | builtin-class slice | slice |
4+ | file://:0:0:0:0 | list object | sys.argv |
Original file line number Diff line number Diff line change 1+ import python
2+
3+ from Value val , string name
4+ where
5+ val = Value:: named ( name )
6+ and
7+ (
8+ name = "bool" or name = "sys" or name = "sys.argv" or
9+ name = "ValueError" or name = "slice"
10+ )
11+
12+ select val , name
You can’t perform that action at this time.
0 commit comments