Skip to content

Commit dafb129

Browse files
Pytype Teamrchen152
authored andcommitted
Add build rules for testdata
generated by `echo $(ls) | build_cleaner --nofilter_to_affected_rules` in the test folder. Fixed broken files: 1. list definition multiline.py 2. mro in class_def.py (can't have inherit from the same class twice) PiperOrigin-RevId: 446021970
1 parent 6bf9e70 commit dafb129

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pytype/tools/xref/testdata/class_def.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,15 @@ class A:
1111

1212

1313
#- @B defines/binding ClassB
14-
#- @A ref ClassA
1514
#- ClassB.node/kind class
16-
class B(A):
15+
class B:
1716
pass
1817

18+
#- @D defines/binding ClassD
19+
#- @A ref ClassA
20+
#- ClassD.node/kind class
21+
class D(A):
22+
pass
1923

2024
#- @Foo defines/binding ClassFoo
2125
#- @A ref ClassA

pytype/tools/xref/testdata/multiline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515

1616
#- @y defines/binding VarY
1717
#- @a ref VarA
18-
y = list(a,
18+
y = list([a,
1919
#- @b ref VarB
2020
b,
2121
#- @c ref VarC
22-
c)
22+
c])
2323

2424
#- @x ref VarX
2525
#- @y ref VarY
2626
#- @z defines/binding VarZ
27-
z = (x, y)
27+
z = [x, y]
2828

2929
#- @z ref VarZ
3030
z[1] = (1,

0 commit comments

Comments
 (0)