first try at the typing library

This commit is contained in:
Claude
2015-12-29 00:03:08 +01:00
parent beeffd2dcd
commit f5a31ad78e
4 changed files with 95 additions and 4 deletions

View File

@@ -157,3 +157,26 @@ Y = int
def just_because_we_can(x: "flo" + "at"):
#? float()
x
import typing
def we_can_has_sequence(
p: typing.Sequence[int],
q: typing.Sequence[B],
r: "typing.Sequence[int]",
s: typing.Sequence["int"]):
#? ["count"]
p.c
#? int()
p[1]
#? ["count"]
q.c
#? B()
q[1]
#? ["count"]
r.c
#? int()
r[1]
#? ["count"]
s.c
#? int()
s[1]