summaryrefslogtreecommitdiff
path: root/tests/functional/m/multiple_statements_single_line.py
blob: 4a77d992eaea7b2bb996272ca6adc6c97301e0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""Tests for multiple-statements with single-line-***-stmt turned on."""
# pylint: disable=using-constant-test, missing-class-docstring, missing-function-docstring, bare-except
# pylint: disable=unused-argument, function-redefined

from typing import overload

if True: pass

if True: pass  # [multiple-statements]
else:
    pass

class MyError(Exception): pass

class MyError(Exception): a='a'

class MyError(Exception): a='a'; b='b'  # [multiple-statements]

try:
    pass
except:
    pass
finally:
    pass


@overload
def concat2(arg1: str) -> str: ...

def concat2(arg1: str) -> str: ...  # [multiple-statements]