Merge pull request #361 from jcrocholl/issue-357
[third_party/pep8] / testsuite / E25.py
1 #: E251 E251
2 def foo(bar = False):
3     '''Test function with an error in declaration'''
4     pass
5 #: E251
6 foo(bar= True)
7 #: E251
8 foo(bar =True)
9 #: E251 E251
10 foo(bar = True)
11 #: E251
12 y = bar(root= "sdasd")
13 #: E251:2:29
14 parser.add_argument('--long-option',
15                     default=
16                     "/rather/long/filesystem/path/here/blah/blah/blah")
17 #: E251:1:45
18 parser.add_argument('--long-option', default
19                     ="/rather/long/filesystem/path/here/blah/blah/blah")
20 #: E251:3:8 E251:3:10
21 foo(True,
22     baz=(1, 2),
23     biz = 'foo'
24     )
25 #: Okay
26 foo(bar=(1 == 1))
27 foo(bar=(1 != 1))
28 foo(bar=(1 >= 1))
29 foo(bar=(1 <= 1))
30 (options, args) = parser.parse_args()
31 d[type(None)] = _deepcopy_atomic
32
33 # Annotated Function Definitions
34 #: Okay
35 def munge(input: AnyStr, sep: AnyStr = None, limit=1000) -> AnyStr:
36     pass