Skip to content

Commit 458d6ab

Browse files
authored
TST: add deprecated false negative example (#74)
1 parent c755731 commit 458d6ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/fixtures/deprecated_symbols/checker/deprecated_from_nn.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66

77
import torch.nn as yy
88
yy.UpsamplingNearest2d()
9+
10+
func = torch.nn.UpsamplingNearest2d # not detected currently
11+
func()

0 commit comments

Comments
 (0)