diff options
author | Anthony Sottile <asottile@umich.edu> | 2017-01-24 14:36:04 -0800 |
---|---|---|
committer | Ian Cordasco <sigmavirus24@users.noreply.github.com> | 2017-01-24 16:36:03 -0600 |
commit | e4312f75d8e589836e080aeeae28aae0a5c7b087 (patch) | |
tree | cfe4905faf18cf02c82a3e0c4864fcdddb2c6141 /testsuite/python3.py | |
parent | 30c7c4822db6db1a68672b1d6c6d951eacae4ae6 (diff) | |
download | pep8-e4312f75d8e589836e080aeeae28aae0a5c7b087.tar.gz |
Don't report E701 for variable annotations (#612)
Diffstat (limited to 'testsuite/python3.py')
-rw-r--r-- | testsuite/python3.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/python3.py b/testsuite/python3.py index 8881880..fde4281 100644 --- a/testsuite/python3.py +++ b/testsuite/python3.py @@ -1,6 +1,18 @@ #!/usr/bin/env python3 +from typing import ClassVar, List # Annotated function (Issue #29) def foo(x: int) -> int: return x + 1 + + +# Annotated variables #575 +CONST: int = 42 + + +class Class: + cls_var: ClassVar[str] + + def m(self): + xs: List[int] = [] |