diff options
author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-05-23 11:58:11 -0500 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-05-23 11:58:11 -0500 |
commit | 2f6c43bcb3a6bac525198646e99f12b013e4e460 (patch) | |
tree | ea64dd767663f703fa365b119e50b556096af2f5 /testsuite/E25.py | |
parent | 53a24414787f93ec11beb18e7d60ba773c978eb8 (diff) | |
download | pep8-2f6c43bcb3a6bac525198646e99f12b013e4e460.tar.gz |
Allow spaces around = in async definitionsbug/507
In pull request gh-361, we allowed spaces around = for default
arguments with annotations. Python 3.5 added the async keyword for
a function definition and the allowance we made in gh-361 was failing.
This allows a function definition to start with either 'def' or
'async def' now and accommodates both cases.
Closes gh-507
Diffstat (limited to 'testsuite/E25.py')
-rw-r--r-- | testsuite/E25.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testsuite/E25.py b/testsuite/E25.py index 7d00310..7a536b5 100644 --- a/testsuite/E25.py +++ b/testsuite/E25.py @@ -35,3 +35,6 @@ d[type(None)] = _deepcopy_atomic def munge(input: AnyStr, sep: AnyStr = None, limit=1000, extra: Union[str, dict] = None) -> AnyStr: pass +#: Okay +async def add(a: int = 0, b: int = 0) -> int: + return a + b |