1
0
forked from VimPlug/jedi

more elaborate tests

This commit is contained in:
Claude
2015-12-14 12:10:48 +01:00
parent 576fdf8106
commit 6ce076f413

View File

@@ -88,15 +88,25 @@ def annotation_forward_reference(b: "B") -> "B":
#? B()
annotation_forward_reference(1)
#? ["test_element"]
annotation_forward_reference(1).t
class B:
test_element = 1
pass
class SelfReference:
def test(x: "SelfReference") -> "SelfReference":
test_element = 1
def test_method(self, x: "SelfReference") -> "SelfReference":
#? SelfReference()
x
#? ["test_element", "test_method"]
self.t
#? ["test_element", "test_method"]
x.t
#? ["test_element", "test_method"]
self.test_method(1).t
#? SelfReference()
SelfReference().test()
SelfReference().test_method()