summaryrefslogtreecommitdiff
path: root/test/input/func_noerror_e1101_13784.py
blob: b247b4412d4355c616feb9bbffa3b56afbbd175e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""cf #13784
"""

__revision__ = None

def no_conjugate_member(magic_flag):
    """should not raise E1101 on something.conjugate"""
    if magic_flag:
        something = 1.0
    else:
        something = 1.0j
    if isinstance(something, float):
        return something
    return something.conjugate()