FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow Void typed values as returns from None functions by TRManderson · Pull Request #2829 · python/mypy · GitHub

Repository navigation

Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .test  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Remove test that explicitly disallows feature
  • Loading branch information
TRManderson committed Feb 8, 2017
commit 7017ca3f40681f3bcb2f1ea85d48b4a464e87c77
8 changes: 0 additions & 8 deletions test-data/unit/check-statements.test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ class A:
[out]
main:3: error: Return value expected

[case testReturnNoneInFunctionReturningNone]
import typing
def f() -> None:
return None
def g() -> None:
return f() # E: No return value expected
[out]

[case testReturnInGenerator]
from typing import Generator
def f() -> Generator[int, None, str]:
Expand Down

Back | FazBrowse Home | New Git URL