1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
tools/test/set_linter_testdata/python_code.py.txt:3:1: Add import for OrderedSet
1 | # Basic tests
2 | import tempfile
3 |
^
4 | print(f"{tempfile.gettempdir()}/memory_snapshot.pickle")
5 |
tools/test/set_linter_testdata/python_code.py.txt:7:5: Builtin `set` is deprecated
5 |
6 | ignored = set() # noqa: set_linter
7 | a = set()
^^^
8 | b = "set()"
9 | c = set
tools/test/set_linter_testdata/python_code.py.txt:9:5: Builtin `set` is deprecated
7 | a = set()
8 | b = "set()"
9 | c = set
^^^
10 | d = c.set
11 | f = (
tools/test/set_linter_testdata/python_code.py.txt:12:4: Builtin `set` is deprecated
10 | d = c.set
11 | f = (
12 | set(
^^^
13 | )
14 | )
tools/test/set_linter_testdata/python_code.py.txt:38:8: Builtin `set` is deprecated
36 | # Braced sets
37 |
38 | set1 = {1}
^
39 | set2 = {1, 2}
40 |
tools/test/set_linter_testdata/python_code.py.txt:38:10: Builtin `set` is deprecated
36 | # Braced sets
37 |
38 | set1 = {1}
^
39 | set2 = {1, 2}
40 |
tools/test/set_linter_testdata/python_code.py.txt:39:8: Builtin `set` is deprecated
37 |
38 | set1 = {1}
39 | set2 = {1, 2}
^
40 |
41 | iterator_set = {i for i in range(10)}
tools/test/set_linter_testdata/python_code.py.txt:39:13: Builtin `set` is deprecated
37 |
38 | set1 = {1}
39 | set2 = {1, 2}
^
40 |
41 | iterator_set = {i for i in range(10)}
tools/test/set_linter_testdata/python_code.py.txt:41:16: Builtin `set` is deprecated
39 | set2 = {1, 2}
40 |
41 | iterator_set = {i for i in range(10)}
^
42 |
43 | # A dict with two sets.
tools/test/set_linter_testdata/python_code.py.txt:41:37: Builtin `set` is deprecated
39 | set2 = {1, 2}
40 |
41 | iterator_set = {i for i in range(10)}
^
42 |
43 | # A dict with two sets.
tools/test/set_linter_testdata/python_code.py.txt:44:18: Builtin `set` is deprecated
42 |
43 | # A dict with two sets.
44 | dict_set = {"a": {2, 3}, "b": {i for i in range(3)}}
^
45 |
46 | # A set containing an object constructed with a dict and a set
tools/test/set_linter_testdata/python_code.py.txt:44:23: Builtin `set` is deprecated
42 |
43 | # A dict with two sets.
44 | dict_set = {"a": {2, 3}, "b": {i for i in range(3)}}
^
45 |
46 | # A set containing an object constructed with a dict and a set
tools/test/set_linter_testdata/python_code.py.txt:44:31: Builtin `set` is deprecated
42 |
43 | # A dict with two sets.
44 | dict_set = {"a": {2, 3}, "b": {i for i in range(3)}}
^
45 |
46 | # A set containing an object constructed with a dict and a set
tools/test/set_linter_testdata/python_code.py.txt:44:51: Builtin `set` is deprecated
42 |
43 | # A dict with two sets.
44 | dict_set = {"a": {2, 3}, "b": {i for i in range(3)}}
^
45 |
46 | # A set containing an object constructed with a dict and a set
tools/test/set_linter_testdata/python_code.py.txt:47:11: Builtin `set` is deprecated
45 |
46 | # A set containing an object constructed with a dict and a set
47 | sos_set = {Something({i: i + 1 for i in range(3)}, {i + 1 for i in range(3)})}
^
tools/test/set_linter_testdata/python_code.py.txt:47:52: Builtin `set` is deprecated
45 |
46 | # A set containing an object constructed with a dict and a set
47 | sos_set = {Something({i: i + 1 for i in range(3)}, {i + 1 for i in range(3)})}
^
tools/test/set_linter_testdata/python_code.py.txt:47:76: Builtin `set` is deprecated
45 |
46 | # A set containing an object constructed with a dict and a set
47 | sos_set = {Something({i: i + 1 for i in range(3)}, {i + 1 for i in range(3)})}
^
tools/test/set_linter_testdata/python_code.py.txt:47:78: Builtin `set` is deprecated
45 |
46 | # A set containing an object constructed with a dict and a set
47 | sos_set = {Something({i: i + 1 for i in range(3)}, {i + 1 for i in range(3)})}
^
|