Debian Codegraph @

test-data/unit/check-unsupported.test

raw
1 -- Tests for unsupported features
2
3
4 [case testDecorateOverloadedFunction]
5 from foo import *
6 [file foo.pyi]
7 # The error messages are not the most informative ever.
8 def d(x): pass
9 @d
10 def f(): pass
11 def f(x): pass # E
12 def g(): pass
13 @d # E
14 def g(x): pass
15 [out]
16 tmp/foo.pyi:5: error: Name "f" already defined on line 3
17 tmp/foo.pyi:7: error: Name "g" already defined on line 6