summaryrefslogtreecommitdiff
path: root/tests/functional/m/multiple_statements.py
blob: c3252f797c811eeeed750104d55636b1b79f8e9d (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"""
# 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  # [multiple-statements]

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

class MyError(Exception): pass  # [multiple-statements]

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

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: ...