typehints for variables in comments

This commit is contained in:
Claude
2016-02-15 16:02:59 +01:00
parent daeee4ba0c
commit a658f7940c
4 changed files with 91 additions and 49 deletions
-24
View File
@@ -157,27 +157,3 @@ 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