diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2016-04-08 14:54:57 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2016-04-08 18:21:42 +0300 |
commit | 4a37706b95a49ff61a44202f9775146de1e895db (patch) | |
tree | 7fcf9f27191a6438bb727f91f0d7f9e8cc006ca3 /testsuite/E25.py | |
parent | ac1e249ccb17ca67812262ccfc7c53fa9ff6f0df (diff) | |
download | pep8-4a37706b95a49ff61a44202f9775146de1e895db.tar.gz |
Fix false E251 error involving square brackets
Fixed a case where a comma is erroneously interpreted as an
argument separator when square brackets are used in an argument
annotation with a default value.
Closes #496
Diffstat (limited to 'testsuite/E25.py')
-rw-r--r-- | testsuite/E25.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/E25.py b/testsuite/E25.py index ad8db88..7d00310 100644 --- a/testsuite/E25.py +++ b/testsuite/E25.py @@ -32,5 +32,6 @@ d[type(None)] = _deepcopy_atomic # Annotated Function Definitions #: Okay -def munge(input: AnyStr, sep: AnyStr = None, limit=1000) -> AnyStr: +def munge(input: AnyStr, sep: AnyStr = None, limit=1000, + extra: Union[str, dict] = None) -> AnyStr: pass |