1
0
forked from VimPlug/jedi

simple typehints in comments

This commit is contained in:
Claude
2015-12-22 01:00:20 +01:00
parent ca08b8270b
commit daeee4ba0c
4 changed files with 64 additions and 0 deletions

View File

@@ -157,3 +157,27 @@ Y = int
def just_because_we_can(x: "flo" + "at"):
#? float()
x
# python >= 2.6
x = 3 # type: str
#? str()
x
y = 3 # type: str but I write more
#? int()
y
z = 3 # type: str # I comment more
#? str()
z
class BB: pass
def test(a, b):
a = a # type: BB
c = a # type: str
#? BB()
a
#? str()
c