mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 00:24:37 +00:00
16 lines
306 B
Python
16 lines
306 B
Python
"""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()
|
|
|