mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Pull Request resolved: https://github.com/pytorch/pytorch/pull/159252 Approved by: https://github.com/Skylion007
136 lines
4.4 KiB
Plaintext
136 lines
4.4 KiB
Plaintext
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)})}
|
|
^
|