Skip to content

Commit 05b8dff

Browse files
committed
python#1727: deps.test for classmethod
1 parent d5ed26a commit 05b8dff

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎test-data/unit/deps.test‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ class A:
2929
<m.A.g> -> m.f
3030
<m.A> -> <m.f>, m.A, m.f
3131

32+
[case testCallClassMethod]
33+
def f() -> None:
34+
A.g()
35+
class A:
36+
@classmethod
37+
def g(cls) -> None: pass
38+
[out]
39+
<m.A.__init__> -> m.f
40+
<m.A.__new__> -> m.f
41+
<m.A.g> -> m, m.f
42+
<m.A> -> m.A, m.f
43+
[builtins fixtures/classmethod.pyi]
44+
3245
[case testAccessAttribute]
3346
def f(a: A) -> None:
3447
a.x

0 commit comments

Comments
 (0)