Bang on 3.x annotations

This commit is contained in:
rocky
2017-04-11 17:09:10 -04:00
parent 6acec471e3
commit bb24df596d
6 changed files with 60 additions and 14 deletions

View File

@@ -18,6 +18,11 @@ def div(a: dict(type=float, help='the dividend'),
"""Divide a by b"""
return a / b
class TestSignatureObject(unittest.TestCase):
def test_signature_on_wkwonly(self):
def test(*, a:float, b:str) -> int:
pass
class SupportsInt(_Protocol):
@abstractmethod