Skip to content

Commit

Permalink
Add test for Callables returning None (#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddfisher authored and gvanrossum committed Aug 4, 2016
1 parent 1c678af commit e39a50d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test-data/unit/check-optional.test
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,8 @@ def f() -> None:
[case testReturnNone]
def f() -> None:
return None

[case testNoneCallable]
from typing import Callable
def f() -> None: pass
x = f # type: Callable[[], None]

0 comments on commit e39a50d

Please # to comment.